moviewyrm/docker-compose.yml

47 lines
930 B
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
rabbitmq:
env_file: .env
image: rabbitmq:latest
networks:
- main
ports:
- "5672:5672"
restart: on-failure
celery_worker:
env_file: .env
build: .
networks:
- main
command: celery -A fedireads worker -l info
volumes:
- .:/app
depends_on:
- db
- rabbitmq
restart: on-failure
2020-03-22 18:21:19 +00:00
volumes:
pgdata:
2020-03-22 21:33:26 +00:00
networks:
main: