2020-03-22 11:21:19 -07:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2020-05-17 20:20:51 -07:00
|
|
|
nginx:
|
2020-10-05 14:22:37 -07:00
|
|
|
image: nginx:latest
|
2020-05-17 20:20:51 -07:00
|
|
|
ports:
|
|
|
|
- 1333:80
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
volumes:
|
2020-10-05 14:22:37 -07:00
|
|
|
- ./nginx:/etc/nginx/conf.d
|
2020-05-17 20:20:51 -07:00
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
2020-03-22 11:21:19 -07:00
|
|
|
db:
|
|
|
|
image: postgres
|
2020-10-16 13:20:12 -07:00
|
|
|
env_file: .env
|
2020-03-22 11:21:19 -07:00
|
|
|
volumes:
|
2020-03-27 13:04:06 -07:00
|
|
|
- pgdata:/var/lib/postgresql/data
|
2020-03-22 14:33:26 -07:00
|
|
|
networks:
|
|
|
|
- main
|
2020-03-22 11:21:19 -07:00
|
|
|
web:
|
|
|
|
build: .
|
2020-11-08 12:14:57 -08:00
|
|
|
env_file: .env
|
2020-03-22 11:21:19 -07:00
|
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
|
|
volumes:
|
2020-03-22 14:33:26 -07:00
|
|
|
- .:/app
|
2020-05-17 20:20:51 -07:00
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
2020-03-22 11:21:19 -07:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-03-22 14:33:26 -07:00
|
|
|
- celery_worker
|
|
|
|
networks:
|
|
|
|
- main
|
2020-06-17 12:53:44 -04:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
2020-03-31 16:31:33 -07:00
|
|
|
redis:
|
|
|
|
image: redis
|
2020-10-16 13:20:12 -07:00
|
|
|
env_file: .env
|
2020-03-31 16:31:33 -07:00
|
|
|
ports:
|
2020-10-16 13:02:58 -07:00
|
|
|
- 6379:6379
|
2020-03-22 14:33:26 -07:00
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
restart: on-failure
|
|
|
|
celery_worker:
|
2020-10-16 13:20:12 -07:00
|
|
|
env_file: .env
|
2020-03-22 14:33:26 -07:00
|
|
|
build: .
|
|
|
|
networks:
|
|
|
|
- main
|
2020-09-17 14:13:44 -07:00
|
|
|
command: celery -A celerywyrm worker -l info
|
2020-03-22 14:33:26 -07:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
2020-10-01 10:20:40 -07:00
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
2020-03-22 14:33:26 -07:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-03-31 16:31:33 -07:00
|
|
|
- redis
|
|
|
|
restart: on-failure
|
2020-10-31 11:18:40 -07:00
|
|
|
flower:
|
2020-11-07 18:25:17 -08:00
|
|
|
build: .
|
|
|
|
command: flower --port=8888
|
2020-10-31 11:18:40 -07:00
|
|
|
env_file: .env
|
|
|
|
environment:
|
|
|
|
- CELERY_BROKER_URL=${CELERY_BROKER}
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- 8888:8888
|
2020-03-22 11:21:19 -07:00
|
|
|
volumes:
|
|
|
|
pgdata:
|
2020-05-17 20:20:51 -07:00
|
|
|
static_volume:
|
|
|
|
media_volume:
|
2020-03-22 14:33:26 -07:00
|
|
|
networks:
|
|
|
|
main:
|