2020-03-22 14:21:19 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2021-03-04 13:44:12 -05:00
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
ports:
|
|
|
|
- 1333:80
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
volumes:
|
|
|
|
- ./nginx:/etc/nginx/conf.d
|
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
env_file: .env
|
|
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- celery_worker
|
2021-03-22 13:44:42 -04:00
|
|
|
- redis_activity
|
2021-03-04 13:44:12 -05:00
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
ports:
|
2022-02-04 20:37:08 -05:00
|
|
|
- 8000
|
2021-03-22 13:44:42 -04:00
|
|
|
redis_activity:
|
|
|
|
image: redis
|
2022-01-05 11:27:39 -05:00
|
|
|
command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes --port ${REDIS_ACTIVITY_PORT}
|
2022-02-06 09:37:03 -05:00
|
|
|
volumes:
|
|
|
|
- ./redis.conf:/etc/redis/redis.conf
|
|
|
|
- redis_activity_data:/data
|
2021-03-22 13:44:42 -04:00
|
|
|
env_file: .env
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
restart: on-failure
|
|
|
|
redis_broker:
|
2021-03-04 13:44:12 -05:00
|
|
|
image: redis
|
2022-01-05 11:27:39 -05:00
|
|
|
command: redis-server --requirepass ${REDIS_BROKER_PASSWORD} --appendonly yes --port ${REDIS_BROKER_PORT}
|
2022-02-04 21:34:17 -05:00
|
|
|
volumes:
|
|
|
|
- ./redis.conf:/etc/redis/redis.conf
|
|
|
|
- redis_broker_data:/data
|
2021-03-04 13:44:12 -05:00
|
|
|
env_file: .env
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
restart: on-failure
|
|
|
|
celery_worker:
|
|
|
|
env_file: .env
|
|
|
|
build: .
|
|
|
|
networks:
|
|
|
|
- main
|
2021-09-07 19:06:54 -04:00
|
|
|
command: celery -A celerywyrm worker -l info -Q high_priority,medium_priority,low_priority
|
2021-03-04 13:44:12 -05:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
|
|
|
depends_on:
|
|
|
|
- db
|
2021-03-22 13:44:42 -04:00
|
|
|
- redis_broker
|
2021-03-04 13:44:12 -05:00
|
|
|
restart: on-failure
|
2022-02-26 11:44:19 -05:00
|
|
|
celery_beat:
|
|
|
|
env_file: .env
|
|
|
|
build: .
|
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
command: celery -A celerywyrm beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- static_volume:/app/static
|
|
|
|
- media_volume:/app/images
|
|
|
|
depends_on:
|
|
|
|
- celery_worker
|
|
|
|
restart: on-failure
|
2021-03-04 13:44:12 -05:00
|
|
|
flower:
|
|
|
|
build: .
|
2022-02-04 20:37:08 -05:00
|
|
|
command: celery -A celerywyrm flower --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD}
|
2021-03-04 13:44:12 -05:00
|
|
|
env_file: .env
|
2022-01-07 12:45:21 -05:00
|
|
|
ports:
|
2022-02-04 20:37:08 -05:00
|
|
|
- ${FLOWER_PORT}
|
2021-05-24 00:49:12 -04:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
2021-03-04 13:44:12 -05:00
|
|
|
networks:
|
|
|
|
- main
|
|
|
|
depends_on:
|
|
|
|
- db
|
2021-03-22 13:44:42 -04:00
|
|
|
- redis_broker
|
2021-03-04 13:44:12 -05:00
|
|
|
restart: on-failure
|
2022-02-12 17:06:18 -05:00
|
|
|
dev-tools:
|
2022-02-15 15:25:35 -05:00
|
|
|
build: dev-tools
|
2022-02-12 17:06:18 -05:00
|
|
|
env_file: .env
|
|
|
|
volumes:
|
2022-02-16 15:53:18 -05:00
|
|
|
- .:/app
|
2020-03-22 14:21:19 -04:00
|
|
|
volumes:
|
2021-03-04 13:44:12 -05:00
|
|
|
pgdata:
|
|
|
|
static_volume:
|
|
|
|
media_volume:
|
2021-04-15 17:55:08 -04:00
|
|
|
redis_broker_data:
|
|
|
|
redis_activity_data:
|
2020-03-22 17:33:26 -04:00
|
|
|
networks:
|
2021-03-04 13:44:12 -05:00
|
|
|
main:
|