-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquantum.yml
233 lines (232 loc) · 6.02 KB
/
quantum.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
configs:
bbnavi-datahub-credentials:
external: true
name: bbnavi-datahub-credentials
datahub-nginx-conf:
external: true
name: datahub-nginx-conf
mainserver-common-master-key:
external: true
name: mainserver-common-master-key
networks:
adminer:
external: true
name: adminer
bbnavi-datahub-postgresql:
external: true
name: bbnavi-datahub-postgresql
bbnavi-redis-server:
external: true
name: bbnavi-redis-server
public:
external: true
name: public
ssh_public_keys:
external: true
name: ssh_public_keys
services:
app:
configs:
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
- source: mainserver-common-master-key
target: /app/config/master.key
deploy:
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
restart_policy:
condition: on-failure
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
SVA_COMMUNITY: bbnavi
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
networks:
bbnavi-datahub-postgresql: {}
bbnavi-redis-server: {}
default: {}
volumes:
- assets:/assets:rw
- unicorn:/unicorn:rw
cron_job:
command: bin/start-cron.sh
configs:
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
- source: mainserver-common-master-key
target: /app/config/master.key
deploy:
labels:
swarm.cronjob.enable: "true"
swarm.cronjob.schedule: 1 1 1 * * *
swarm.cronjob.skip-running: "true"
traefik.docker.network: public
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
replicas: 0
restart_policy:
condition: on-failure
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
SVA_COMMUNITY: bbnavi
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
networks:
bbnavi-datahub-postgresql: {}
bbnavi-redis-server: {}
default: {}
public: {}
volumes:
- assets:/assets:rw
- unicorn:/unicorn:rw
db:
deploy:
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
restart_policy:
condition: on-failure
environment:
DATADIR: /var/lib/postgresql/data
POSTGRES_DB: bbnavihub
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_PASSWORD: bbnavihub
POSTGRES_PASSWORT: bbnavihub
POSTGRES_USER: bbnavihub
image: postgis/postgis:15-3.3
networks:
adminer:
aliases:
- int-development-mainserver
bbnavi-datahub-postgresql:
aliases:
- bbnavi-datahub-postgresql
default: {}
volumes:
- datahub_postgres_15_production_db:/var/lib/postgresql/data:rw
delayed_job:
command: bin/delayed_job run
configs:
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
- source: mainserver-common-master-key
target: /app/config/master.key
deploy:
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
restart_policy:
condition: on-failure
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
SVA_COMMUNITY: bbnavi
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
networks:
bbnavi-datahub-postgresql: {}
bbnavi-redis-server: {}
default: {}
volumes:
- assets:/assets:rw
- unicorn:/unicorn:rw
nginx:
configs:
- source: datahub-nginx-conf
target: /etc/nginx/conf.d/default.conf
deploy:
labels:
traefik.docker.network: public
traefik.enable: "true"
traefik.frontend.rule: Host:datahub.bbnavi.de
traefik.port: '80'
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
restart_policy:
condition: on-failure
image: nginx
networks:
default: {}
public: {}
volumes:
- assets:/public:rw
- unicorn:/unicorn:rw
redis:
environment:
ALLOW_EMPTY_PASSWORD: "yes"
REDIS_DISABLE_COMMANDS: FLUSHDB,FLUSHALL
image: docker.io/bitnami/redis:6.0-debian-10
networks:
bbnavi-redis-server:
aliases:
- bbnavi-redis-server
volumes:
- redis_data:/bitnami/redis/data:rw
ssh-server:
deploy:
labels:
traefik.docker.network: public
traefik.enable: "true"
traefik.frontend.passHostHeader: "true"
traefik.frontend.redirect.entryPoint: https
traefik.frontend.rule: Host:ssh.datahub.bbnavi.de
traefik.port: '80'
replicas: 0
restart_policy:
condition: on-failure
environment:
DOCKER_MODS: linuxserver/mods:openssh-server-ssh-tunnel
PGID: '0'
PUBLIC_KEY_DIR: /public_keys
PUID: '0'
SUDO_ACCESS: "true"
TZ: Europe/Berlin
USER_NAME: bbnavi
expose:
- '5432'
image: ghcr.io/linuxserver/openssh-server
networks:
bbnavi-datahub-postgresql: {}
public: {}
ports:
- published: 2222
target: 2222
volumes:
- ssh_public_keys:/public_keys:rw
tile_server:
command: martin --config /martin_config.yml
deploy:
labels:
traefik.docker.network: public
traefik.enable: "true"
traefik.frontend.rule: Host:tiles.bbnavi.de
traefik.port: '5000'
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
restart_policy:
condition: on-failure
environment:
DATABASE_URL: postgres://bbnavihub@bbnavi-datahub-postgresql/bbnavihub
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:tileserver
networks:
bbnavi-datahub-postgresql: {}
public: {}
ports:
- published: 5000
target: 5000
version: '3.7'
volumes:
assets: {}
datahub_postgres_15_production_db:
external: true
name: datahub_postgres_15_production_db
redis_data:
external: true
name: redis_data
ssh_public_keys:
external: true
name: ssh_public_keys
unicorn: {}