Last active
June 21, 2022 08:40
-
-
Save k22pr/25a7ca98b976e8eda707db750eb1bc6c to your computer and use it in GitHub Desktop.
mysql docker-compose.yml
This file contains 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: mariadb:latest | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./db/conf.d:/etc/mysql/conf.d | |
- ./db/data:/var/lib/mysql | |
env_file: .env | |
environment: | |
TZ: Asia/Seoul | |
environment: | |
MYSQL_ROOT_PASSWORD: PA$$WORD | |
MYSQL_USER: USER | |
MYSQL_PASSWORD: PA$$WORD | |
MYSQL_DATABASE: USER | |
networks: | |
- backend | |
restart: always | |
networks: | |
backend: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mongodb