Last active
July 1, 2019 09:52
-
-
Save vascoosx/21e414b32ee9791a37c6f9bed059f79d to your computer and use it in GitHub Desktop.
docker compose
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: postgres:10.4-alpine | |
ports: | |
- 5432:5432 | |
volumes: | |
- postgres:/var/lib/postgresql/data | |
redis: | |
image: redis:4.0-alpine | |
ports: | |
- 6379:6379 | |
volumes: | |
- redis:/usr/local/etc/redis/redis.conf | |
- redis-data:/data | |
volumes: | |
postgres: | |
redis: | |
redis-data: | |
# volumes | |
# postgres: | |
# driver: local | |
# driver_opts: | |
# type: none | |
# device: <path to postgres data> | |
# o: bind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment