This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
110 lines (108 loc) · 2.87 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '2.1'
# This is the recommended way of injecting common blocks into a docker
# compose file, see:
#
# https://docs.docker.com/compose/compose-file/#extension-fields
# https://github.com/docker/compose/issues/3231
#
# &log-journald defines a yaml anchor and *log-journald elsewhere
# references it - it must come early in the file. The leading 'x-' in
# the definition is important to mark this field as an extension
# field.
x-logging: &log-journald
driver: journald
options:
tag: montagu
services:
api:
image: ${VIMC_REGISTRY}/montagu-api:${MONTAGU_API_VERSION}
restart: always
logging: *log-journald
depends_on:
- db
volumes:
# If password_group is 'production' then emails will be really sent, and this
# volume will remain empty. Otherwise emails are written to disk here.
- emails:/tmp/montagu_emails
- burden_estimate_files:/upload_dir
db:
image: ${VIMC_REGISTRY}/montagu-db:${MONTAGU_DB_VERSION}
restart: always
logging: *log-journald
command: ${MONTAGU_DB_CONF}
shm_size: 512M
ports:
- "5432:5432"
volumes:
- db_volume:/pgdata
contrib:
image: ${VIMC_REGISTRY}/montagu-contrib-portal:${MONTAGU_CONTRIB_PORTAL_VERSION}
restart: always
logging: *log-journald
depends_on:
- api
volumes:
- template_volume:/usr/share/nginx/html/templates
- guidance_volume:/usr/share/nginx/html/guidance
admin:
image: ${VIMC_REGISTRY}/montagu-admin-portal:${MONTAGU_ADMIN_PORTAL_VERSION}
restart: always
logging: *log-journald
depends_on:
- api
proxy:
image: ${VIMC_REGISTRY}/montagu-reverse-proxy:${MONTAGU_PROXY_VERSION}
restart: always
logging: *log-journald
ports:
- "${MONTAGU_PORT}:${MONTAGU_PORT}"
- 80:80
depends_on:
- api
- admin
- contrib
command: ${MONTAGU_PORT} ${MONTAGU_HOSTNAME}
static:
image: ${VIMC_REGISTRY}/montagu-static:${MONTAGU_STATIC_VERSION}
restart: always
logging: *log-journald
volumes:
- static_volume:/www
- static_logs:/var/log/caddy
mq:
image: redis
restart: always
logging: *log-journald
ports:
- "6379:6379"
volumes:
- mq:/data
flower:
image: mher/flower:0.9.5
restart: always
logging: *log-journald
ports:
- "5555:5555"
environment:
- CELERY_BROKER_URL=redis://montagu_mq_1//
- CELERY_RESULT_BACKEND=redis://montagu_mq_1/0
- FLOWER_PORT=5555
task-queue:
image: ${VIMC_REGISTRY}/task-queue-worker:${MONTAGU_TASK_QUEUE_VERSION}
restart: always
logging: *log-journald
depends_on:
- mq
environment:
- YOUTRACK_TOKEN=$YOUTRACK_TOKEN
volumes:
- burden_estimate_files:/home/worker/burden_estimate_files
volumes:
static_logs:
static_volume:
db_volume:
template_volume:
guidance_volume:
emails:
mq:
burden_estimate_files: