Added celery to prod docker-compose
ci/woodpecker/push/build Pipeline was successful
Szczegóły
ci/woodpecker/push/build Pipeline was successful
Szczegóły
rodzic
e67806992b
commit
315a80f66b
|
@ -16,6 +16,16 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- nginx_network
|
- nginx_network
|
||||||
|
|
||||||
|
rabbit:
|
||||||
|
hostname: rabbit
|
||||||
|
image: rabbitmq:3.6.0
|
||||||
|
environment:
|
||||||
|
- RABBITMQ_DEFAULT_USER
|
||||||
|
- RABBITMQ_DEFAULT_PASS
|
||||||
|
ports:
|
||||||
|
- "5672:5672" # We forward this port because it's useful for debugging
|
||||||
|
- "15672:15672" # Here, we can access RabbitMQ management plugin
|
||||||
|
|
||||||
comfy:
|
comfy:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -52,6 +62,40 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- nginx_network
|
- nginx_network
|
||||||
|
|
||||||
|
beat:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
command: celery -A artel beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
|
||||||
|
volumes:
|
||||||
|
- ./:/app
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- SECRET_KEY
|
||||||
|
- DATABASE_URL
|
||||||
|
depends_on:
|
||||||
|
- comfy
|
||||||
|
- rabbit
|
||||||
|
|
||||||
|
worker:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
command: celery -A artel worker -l info
|
||||||
|
volumes:
|
||||||
|
- ./:/app
|
||||||
|
- ./media:/app/media
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- SECRET_KEY
|
||||||
|
- DATABASE_URL
|
||||||
|
depends_on:
|
||||||
|
- comfy
|
||||||
|
- rabbit
|
||||||
|
- beat
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
nginx_network:
|
nginx_network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
Ładowanie…
Reference in New Issue