Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement