1 parent
9ec12d9cfb
commit
57e98728eb
13 files changed
+259
-5
No files matched your search
+36
-1
@@ -15,11 +15,20 @@ services:
|
||||
- TABLE_ID=${TABLE_ID}
|
||||
- BROKER_URL=${BROKER_URL}
|
||||
- RESULT_BACKEND=${RESULT_BACKEND}
|
||||
- XBOT_USERNAME=${XBOT_USERNAME}
|
||||
- XBOT_PASSWORD=${XBOT_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://office-xbot-app/index"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
start_interval: 5s
|
||||
|
||||
office-xbot-celery:
|
||||
container_name: office-xbot-celery
|
||||
image: "${APP_IMAGE}"
|
||||
command: "celery -A app.make_celery worker --loglevel INFO"
|
||||
command: "celery -A app.make_celery worker -B --loglevel INFO"
|
||||
environment:
|
||||
- APP_ID=${APP_ID}
|
||||
- APP_SECRET=${APP_SECRET}
|
||||
@@ -29,12 +38,38 @@ services:
|
||||
- TABLE_ID=${TABLE_ID}
|
||||
- BROKER_URL=${BROKER_URL}
|
||||
- RESULT_BACKEND=${RESULT_BACKEND}
|
||||
- XBOT_USERNAME=${XBOT_USERNAME}
|
||||
- XBOT_PASSWORD=${XBOT_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD", "celery", "inspect", "ping"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
depends_on:
|
||||
- office-xbot-redis
|
||||
|
||||
office-xbot-redis:
|
||||
container_name: office-xbot-redis
|
||||
image: redis:latest
|
||||
ports:
|
||||
- "6379:6379"
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
office-xbot-flower:
|
||||
container_name: office-xbot-flower
|
||||
image: "${APP_IMAGE}"
|
||||
command: "celery --broker=${BROKER_URL} flower --loglevel INFO"
|
||||
ports:
|
||||
- "5555:5555"
|
||||
depends_on:
|
||||
office-xbot-celery:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
|
||||
|
||||
networks:
|
||||
office-xbot-network:
|
||||
|
||||
Reference in new issue
Block a user