-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.override.yml
133 lines (116 loc) · 2.97 KB
/
docker-compose.override.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '3.4'
# this file contains configs for prod isntance of signalboost
# see docker-compose.yml for defaults extended here
x-loki-logging: &loki-logging
options:
loki-url: ${LOKI_URL}
driver: loki
x-signald-overrides: &signald-overrides
logging: *loki-logging
networks:
- default
- proxy-tier
networks:
proxy-tier:
volumes:
certs:
html:
acme_config:
services:
app:
env_file: .env
environment:
NODE_ENV: production
LETSENCRYPT_HOST: ${SIGNALBOOST_HOST_URL}
VIRTUAL_HOST: ${SIGNALBOOST_HOST_URL}
VIRTUAL_PORT: 3000
logging: *loki-logging
networks:
- proxy-tier
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
environment:
LETSENCRYPT_HOST: ${CADVISOR_HOST_URL}
VIRTUAL_HOST: ${CADVISOR_HOST_URL}
VIRTUAL_PORT: 8080
expose:
- 8080
logging: *loki-logging
networks:
- proxy-tier
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
db:
logging: *loki-logging
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:2.0.2
container_name: signalboost_letsencrypt
restart: always
volumes:
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- ./nginx/vhost.d:/etc/nginx/vhost.d
- /var/run/docker.sock:/var/run/docker.sock:ro
- acme_config:/etc/acme.sh
networks:
- proxy-tier
logging: *loki-logging
depends_on:
- proxy
proxy:
image: jwilder/nginx-proxy:0.8.0
container_name: signalboost_proxy
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- certs:/etc/nginx/certs:ro
- ./nginx/vhost.d:/etc/nginx/vhost.d:ro
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
logging: *loki-logging
restart: always
signald_0:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_0}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_0}
VIRTUAL_PORT: 5000
signald_1:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_1}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_1}
VIRTUAL_PORT: 5001
signald_2:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_2}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_2}
VIRTUAL_PORT: 5002
signald_3:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_3}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_3}
VIRTUAL_PORT: 5003
signald_4:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_4}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_4}
VIRTUAL_PORT: 5004
signald_5:
<<: *signald-overrides
environment:
LETSENCRYPT_HOST: ${SIGNALD_HOST_URL_5}
VIRTUAL_HOST: ${SIGNALD_HOST_URL_5}
VIRTUAL_PORT: 5005