Created
January 8, 2020 00:53
-
-
Save vinhhungle/52c5a29ce7b03ea626f7e64d838894ff to your computer and use it in GitHub Desktop.
Docker DB Containers
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: | |
mongo: | |
image: mongo | |
volumes: | |
- ./docker/volumes/mongo:/data/db | |
ports: | |
- 27017:27017 | |
postgres: | |
image: postgres | |
volumes: | |
- ./docker/volumes/postgres:/var/lib/postgresql/data | |
ports: | |
- 5432:5432 | |
environment: | |
POSTGRES_PASSWORD: postgres | |
# redis: | |
# image: redis | |
# volumes: | |
# - ./docker/volumes/redis:/data | |
# ports: | |
# - 6379:6379 | |
# command: ["redis-server", "--appendonly", "yes"] | |
# mysql: | |
# image: mysql | |
# volumes: | |
# - ./docker/volumes/mysql:/var/lib/mysql | |
# ports: | |
# - 3306:3306 | |
# environment: | |
# MYSQL_ROOT_PASSWORD: root | |
# MYSQL_DATABASE: dev | |
# MYSQL_USER: mysql | |
# MYSQL_PASS: mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment