-
Notifications
You must be signed in to change notification settings - Fork 2
/
stack.yml
114 lines (106 loc) · 2.63 KB
/
stack.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
version: '3.7'
services:
tile_server:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:tileserver
ports:
- 5000:5000
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == node-001.tpwd-bb-navi
labels:
traefik.enable: "true"
traefik.port: 5000
traefik.docker.network: public
traefik.frontend.rule: Host:tiles.bbnavi.de
delayed_job:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
networks:
- default
- bbnavi-redis-server
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
cron_job:
image: registry.gitlab.tpwd.de/tpwd/bb-navi/datahub:latest
networks:
- default
- public
- bbnavi-redis-server
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
deploy:
replicas: 0
labels:
swarm.cronjob.enable: "true"
swarm.cronjob.skip-running: "true"
swarm.cronjob.schedule: 1 1 1 * * *
traefik.docker.network: public
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
networks:
- default
- bbnavi-redis-server
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
nginx:
deploy:
labels:
traefik.enable: "true"
traefik.port: 80
traefik.docker.network: public
traefik.frontend.rule: Host:datahub.bbnavi.de
db:
networks:
default:
adminer:
aliases:
- int-development-mainserver
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:
public: {}
bbnavi-datahub-postgresql: {}
volumes:
- ssh_public_keys:/public_keys:rw
ports:
- published: 2222
target: 2222
networks:
adminer:
external: true
public:
external: true
ssh_public_keys:
external: true
name: ssh_public_keys