Created
June 1, 2021 11:14
-
-
Save ProMasoud/3e775017944d20ae66742f2d7dc46400 to your computer and use it in GitHub Desktop.
docker-compose.master.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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