Skip to content

Instantly share code, notes, and snippets.

@ProMasoud
Created June 1, 2021 11:14
Show Gist options
  • Save ProMasoud/3e775017944d20ae66742f2d7dc46400 to your computer and use it in GitHub Desktop.
Save ProMasoud/3e775017944d20ae66742f2d7dc46400 to your computer and use it in GitHub Desktop.
docker-compose.master.yml
version: '3'
services:
db:
image: mysql:8.0
container_name: db
restart: always
ports:
- $DB_PORT:3306
command:
- --default-authentication-plugin=mysql_native_password
volumes:
- ./master.conf.cnf:/etc/mysql/conf.d/mysql.conf.cnf
- db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_DATABASE: ${DB_DATABASE}
networks:
- internal
adminer:
image: adminer:latest
restart: always
ports:
- "8081:8080"
networks:
- internal
#Docker Networks
networks:
internal:
#Volumes
volumes:
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment