forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.celery.yml
More file actions
47 lines (46 loc) · 1.37 KB
/
docker-compose.celery.yml
File metadata and controls
47 lines (46 loc) · 1.37 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
mq:
image: rabbitmq:3-alpine
user: '${RABBITMQ_UID:-499:499}'
hostname: datatracker-mq
# deploy:
# resources:
# limits:
# memory: 1gb # coordinate with settings in rabbitmq.conf
# reservations:
# memory: 512mb
mem_limit: 1gb # coordinate with settings in rabbitmq.conf
ports:
- '${MQ_PORT:-5672}:5672'
volumes:
- ./lib.rabbitmq:/var/lib/rabbitmq
- ./rabbitmq.conf:/etc/rabbitmq/conf.d/90-ietf.conf
- ./definitions.json:/ietf-conf/definitions.json
restart: unless-stopped
logging:
driver: "syslog"
options:
syslog-address: 'unixgram:///dev/log'
tag: 'docker/{{.Name}}'
# syslog-address: "tcp://ietfa.amsl.com:514"
celery:
image: ghcr.io/ietf-tools/datatracker-celery:latest
environment:
CELERY_APP: ietf
# UPDATE_REQUIREMENTS: 1 # uncomment to update Python requirements on startup
command:
- '--loglevel=INFO'
user: '${CELERY_UID:-499:499}'
volumes:
- '${DATATRACKER_PATH:-..}:/workspace'
- '${MYSQL_SOCKET_PATH:-/run/mysql}:/run/mysql'
depends_on:
- mq
network_mode: 'service:mq'
restart: unless-stopped
logging:
driver: "syslog"
options:
syslog-address: 'unixgram:///dev/log'
tag: 'docker/{{.Name}}'
# syslog-address: "tcp://ietfa.amsl.com:514"