-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
166 lines (156 loc) · 4.15 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
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
version: '3.7'
services:
tile_server:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:tileserver
environment:
DATABASE_URL: postgres://bbnavihub@bbnavi-datahub-postgresql/bbnavihub
command: "martin --config /martin_config.yml"
# configs:
# - source: martin-config-yml-2022-05-19
# target: /martin_config.yml
networks:
- bbnavi-datahub-postgresql
- public
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
delayed_job:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
command: bin/delayed_job run
networks:
- bbnavi-datahub-postgresql
- bbnavi-redis-server
environment:
SVA_COMMUNITY: bbnavi
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
configs:
- source: mainserver-common-master-key
target: /app/config/master.key
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
volumes:
- unicorn:/unicorn
- assets:/assets
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
cron_job:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
command: bin/start-cron.sh
environment:
SVA_COMMUNITY: bbnavi
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
networks:
- bbnavi-datahub-postgresql
- bbnavi-redis-server
configs:
- source: mainserver-common-master-key
target: /app/config/master.key
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
volumes:
- unicorn:/unicorn
- assets:/assets
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
app:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
environment:
SVA_COMMUNITY: bbnavi
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
configs:
- source: mainserver-common-master-key
target: /app/config/master.key
- source: bbnavi-datahub-credentials
target: /app/releases/bbnavi/credentials.yml
volumes:
- unicorn:/unicorn
- assets:/assets
networks:
- bbnavi-datahub-postgresql
- bbnavi-redis-server
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
nginx:
image: nginx
networks: [default, public]
configs:
- source: datahub-nginx-conf
target: /etc/nginx/conf.d/default.conf
volumes:
- unicorn:/unicorn
- assets:/public
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
db:
# image: 'postgres:10.3-alpine'
image: 'postgis/postgis:15-3.3'
environment:
POSTGRES_USER: bbnavihub
POSTGRES_PASSWORT: bbnavihub
POSTGRES_PASSWORD: bbnavihub
POSTGRES_DB: bbnavihub
POSTGRES_HOST_AUTH_METHOD: trust
DATADIR: /var/lib/postgresql/data
networks:
bbnavi-datahub-postgresql:
aliases:
- bbnavi-datahub-postgresql
volumes:
- datahub_postgres_15_production_db:/var/lib/postgresql/data:rw
# old db backup in volume 'datahub_db'
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
volumes:
datahub_postgres_15_production_db:
external: true
redis_data:
external: true
unicorn:
assets:
ssh_public_keys:
external: true
configs:
bbnavi-datahub-credentials:
external: true
mainserver-common-master-key:
external: true
datahub-nginx-conf:
external: true
networks:
public:
external: true
bbnavi-datahub-postgresql:
external: true
bbnavi-redis-server:
external: true