Skip to content

Instantly share code, notes, and snippets.

@vascoosx
Last active July 1, 2019 09:52
Show Gist options
  • Save vascoosx/21e414b32ee9791a37c6f9bed059f79d to your computer and use it in GitHub Desktop.
Save vascoosx/21e414b32ee9791a37c6f9bed059f79d to your computer and use it in GitHub Desktop.
docker compose
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