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: |
version: "3"
services:
mongodb:
image: mongo
restart: always
container_name: mongodb
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: USER_NAME
MONGO_INITDB_ROOT_PASSWORD: USER_PASSWORD
volumes:
- /data/mongodb/data/db:/data/db
mongodb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dragonflydb