-
Notifications
You must be signed in to change notification settings - Fork 10
/
stack.yml
77 lines (70 loc) · 1.71 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
version: '3.7'
services:
delayed_job:
image: registry.gitlab.tpwd.de/ikusei/smart-village-app-mainserver/int-development-main_server
networks:
- default
- logs
- sva-redis-server
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
cron_job:
image: registry.gitlab.tpwd.de/ikusei/smart-village-app-mainserver/int-development-main_server
networks:
- default
- public
- sva-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
delay: 60s
max_attempts: 1
app:
image: registry.gitlab.tpwd.de/ikusei/smart-village-app-mainserver/int-development-main_server
networks:
- default
- logs
- sva-redis-server
environment:
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: 1
deploy:
update_config:
parallelism: 1
order: start-first
delay: 10s
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost/health-check || exit 1"]
interval: 10s
timeout: 10s
retries: 30
nginx:
deploy:
labels:
traefik.enable: "true"
traefik.port: 80
traefik.docker.network: public
traefik.frontend.rule: Host:server.int-development.smart-village.app
db:
networks:
default:
adminer:
aliases:
- int-development-mainserver
networks:
adminer:
external: true
logs:
external: true
public:
external: true