version: '2.1'

volumes:
  vol-db:

services:
  db:
    build:
      context: ./mysql
      dockerfile: Dockerfile
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-pass}
      MYSQL_DATABASE: ${MYSQL_DB:-commerce}
      MYSQL_USER: ${MYSQL_USER:-dbuser}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:-dbpass}
    volumes:
      - vol-db:/var/lib/mysql
      - ./mysql/:/docker-entrypoint-initdb.d/
      - ./mysql/master_mysql56.cnf:/etc/mysql/conf.d/master_mysql56.cnf
      - ./mysql/query.log:/var/log/mysql/query.log
      - ./mysql/slow.log:/var/log/mysql/slow.log
    healthcheck:
      test: "/usr/bin/mysql --user=root --password=$${MYSQL_ROOT_PASSWORD} --execute \"SHOW DATABASES;\""
      timeout: 10s
      retries: 10
    ports:
      - "3306:3306"

  adminer:
    image: adminer
    environment:
      ADMINER_DESIGN: rmsoft
    ports:
      - "8081:8080"

version: '2.1'

volumes:
  vol-db:

services:
  db:
    build:
      context: ./mysql
      dockerfile: Dockerfile
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-pass}
      MYSQL_DATABASE: ${MYSQL_DB:-commerce}
      MYSQL_USER: ${MYSQL_USER:-dbuser}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:-dbpass}
    volumes:
      - vol-db:/var/lib/mysql
      - ./mysql/:/docker-entrypoint-initdb.d/
      - ./mysql/master_mysql56.cnf:/etc/mysql/conf.d/master_mysql56.cnf
      - ./mysql/query.log:/var/log/mysql/query.log
      - ./mysql/slow.log:/var/log/mysql/slow.log
    healthcheck:
      test: "/usr/bin/mysql --user=root --password=$${MYSQL_ROOT_PASSWORD} --execute \"SHOW DATABASES;\""
      timeout: 10s
      retries: 10
    ports:
      - "3306:3306"

  adminer:
    image: adminer
    environment:
      ADMINER_DESIGN: rmsoft
    ports:
      - "8081:8080"

Fix line endings in compose file
Fix line endings in compose file

Signed-off-by: jawabuu <6e4bdaee23d66a63fc5b39cfa40c611eea7ca7eb@users.noreply.github.com>
