-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-flower_rabbitmq.yaml
More file actions
34 lines (32 loc) · 1.15 KB
/
docker-compose-flower_rabbitmq.yaml
File metadata and controls
34 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "3.8"
services:
celery:
build:
context: .
dockerfile: Dockerfile
container_name: mituna_celery_flower_rabbitmq
privileged: true
group_add:
- video
devices:
- /dev/kfd:/dev/kfd
- /dev/dri:/dev:dri:rw
stdin_open: true
tty: true
volumes:
- /dev/dri:/dev/dri/:rw
- /var/lib/docker/:/var/lib/docker
env_file:
- .env
environment:
- TUNA_DB_HOSTNAME=${db_host}
- TUNA_DB_NAME=${db_name}
- TUNA_DB_USER_NAME=${db_user}
- TUNA_DB_USER_PASSWORD=${db_password}
- TUNA_CELERY_BROKER_USER=${TUNA_CELERY_BROKER_USER}
- TUNA_CELERY_BROKER_PWD=${TUNA_CELERY_BROKER_PWD}
- TUNA_CELERY_BROKER_HOST=${TUNA_CELERY_BROKER_HOST}
- TUNA_CELERY_BROKER_PORT=${TUNA_CELERY_BROKER_PORT}
#purge offline workers older than 1 day in seconds
command: "celery -A tuna.celery_app.celery_app flower --debug --persistent=True --purge_offline_workers=10800 --broker_api=http://${TUNA_CELERY_BROKER_USER}:${TUNA_CELERY_BROKER_PWD}@${TUNA_CELERY_BROKER_HOST}:${TUNA_CELERY_BROKER_PORT}/api/vhost --port=5555"
network_mode: "host"