-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
72 lines (70 loc) · 1.58 KB
/
compose.yaml
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
x-imx-image: &imx-image
image: ${INFINIMETRICS_IMAGE:-}
platform: "linux/amd64"
services:
nginx:
extends:
file: common.yaml
service: nginx
depends_on:
web:
condition: service_healthy
postgres:
extends:
file: common.yaml
service: postgres
clickhouse:
extends:
file: common.yaml
service: clickhouse
image: ${CLICKHOUSE_IMAGE:-}
collect_stats:
<<: *imx-image
extends:
file: common.yaml
service: collect_stats
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
cron:
<<: *imx-image
extends:
file: common.yaml
service: cron
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
# For being able to read the real hostname
volumes:
- type: bind
source: /etc/hostname
target: /app/data/realhostname
read_only: true
web:
<<: *imx-image
extends:
file: common.yaml
service: web
environment:
- COMPRESS_ENABLED=true
- COMPRESS_OFFLINE=true
command: gunicorn --config /app/gunicorn.conf.py infinimetrics.wsgi:application
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
collect_stats:
condition: service_healthy
# For being able to read the real hostname
volumes:
- type: bind
source: /etc/hostname
target: /app/data/realhostname
read_only: true
volumes:
infinimetrics-static: