moviewyrm/docker-compose.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

2020-03-22 18:21:19 +00:00
version: '3'
services:
nginx:
build: ./nginx
ports:
- 1333:80
depends_on:
- web
networks:
- main
volumes:
- static_volume:/app/static
- media_volume:/app/images
2020-03-22 18:21:19 +00:00
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
- static_volume:/app/static
- media_volume:/app/images
2020-03-22 18:21:19 +00:00
depends_on:
- db
2020-03-22 21:33:26 +00:00
- celery_worker
networks:
- main
ports:
- 8000:8000
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
2020-09-17 21:13:44 +00:00
command: celery -A celerywyrm worker -l info
2020-03-22 21:33:26 +00:00
volumes:
- .:/app
2020-10-01 17:20:40 +00:00
- static_volume:/app/static
- media_volume:/app/images
2020-03-22 21:33:26 +00:00
depends_on:
- db
- redis
restart: on-failure
2020-03-22 18:21:19 +00:00
volumes:
pgdata:
static_volume:
media_volume:
2020-03-22 21:33:26 +00:00
networks:
main: