moviewyrm/docker-compose.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

2020-03-22 18:21:19 +00:00
version: '3'
services:
db:
image: postgres
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data
2020-03-22 21:33:26 +00:00
networks:
- main
2020-03-22 18:21:19 +00:00
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
2020-03-22 21:33:26 +00:00
- .:/app
2020-03-22 18:21:19 +00:00
ports:
- "8000:8000"
depends_on:
- db
2020-03-22 21:33:26 +00:00
- celery_worker
networks:
- main
redis:
image: redis
2020-03-22 21:33:26 +00:00
env_file: .env
ports:
- "6379:6379"
2020-03-22 21:33:26 +00:00
networks:
- main
restart: on-failure
celery_worker:
env_file: .env
build: .
networks:
- main
command: celery -A fr_celery worker -l info
2020-03-22 21:33:26 +00:00
volumes:
- .:/app
depends_on:
- db
- redis
restart: on-failure
flower:
image: mher/flower
command: ["flower", "--broker=redis://redis:6379/0", "--port=5555"]
env_file: .env
ports:
- "5555:5555"
2020-03-22 21:33:26 +00:00
restart: on-failure
2020-03-22 18:21:19 +00:00
volumes:
pgdata:
2020-03-22 21:33:26 +00:00
networks:
main: