Missing volumes on sample docker compose

This commit is contained in:
Eliot Berriot 2017-06-28 20:41:25 +02:00
parent cfacd9f770
commit e250759880
1 changed files with 3 additions and 1 deletions

View File

@ -6,13 +6,15 @@ services:
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
image: postgres:9.4 image: postgres:9.4
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis: redis:
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
image: redis:3 image: redis:3
volumes: volumes:
- ./data:/data - ./data/redis:/data
celeryworker: celeryworker:
restart: unless-stopped restart: unless-stopped