Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: postgres:9.6.5
- volumes:
- - postgres_data:/var/lib/postgresql/data/
- redis:
- image: "redis:alpine"
- web:
- build: .
- command: bash -c "python /code/manage.py migrate --noinput && python /code/manage.py runserver 0.0.0.0:8000"
- volumes:
- - .:/code
- ports:
- - "8000:8000"
- depends_on:
- - db
- - redis
- celery:
- build: .
- command: celery -A proj worker -l info
- volumes:
- - .:/code
- depends_on:
- - db
- - redis
- celery-beat:
- build: .
- command: celery -A proj beat -l info
- volumes:
- - .:/code
- depends_on:
- - db
- - redis
- volumes:
- postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement