blob: 31fe0c1ff3fce3d25aa72a28715e455b1d33cab9 (
plain)
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
|
services:
mon:
image: twinproduction/gatus:latest
volumes:
- "{{ mon_base }}/volumes/gatus/data:/data"
- "{{ mon_base }}/volumes/gatus/config:/config"
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ deployment_time }}
networks:
- monint
- proxy
- metrics
deploy:
mode: replicated
update_config:
parallelism: 1
failure_action: rollback
order: start-first
delay: 5s
monitor: 30s
replicas: 1
labels:
- traefik.enable=true
- traefik.swarm.network=proxy
- traefik.http.routers.mon.middlewares=oauth-verify
- traefik.http.routers.mon.tls=true
- traefik.http.routers.mon.tls.certResolver=letsencrypt
- traefik.http.routers.mon.rule=Host(`{{ mon_domain }}`)
- traefik.http.routers.mon.entrypoints=websecure
- traefik.http.services.mon.loadbalancer.server.port=8080
uptime:
image: oci.liz.coffee/emprespresso/uptime:release
networks:
- monint
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ deployment_time }}
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
failure_action: rollback
labels:
- traefik.enable=false
grafana:
image: grafana/grafana:latest
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ deployment_time }}
volumes:
- "{{ mon_base }}/volumes/grafana/data:/var/lib/grafana"
- "{{ mon_base }}/volumes/grafana/config.ini:/etc/grafana/grafana.ini:ro"
networks:
- monint
- proxy
- metrics
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
failure_action: rollback
labels:
- traefik.enable=true
- traefik.swarm.network=proxy
- traefik.http.routers.grafana.tls=true
- traefik.http.routers.grafana.tls.certResolver=letsencrypt
- traefik.http.routers.grafana.rule=Host(`{{ grafana_domain }}`)
- traefik.http.routers.grafana.entrypoints=websecure
- traefik.http.services.grafana.loadbalancer.server.port=3000
prometheus:
image: prom/prometheus:latest
volumes:
- "{{ mon_base }}/volumes/prometheus/config.yml:/etc/prometheus/prometheus.yml"
networks:
- monint
- proxy
- metrics
environment:
- TZ={{ timezone }}
- DEPLOYMENT_TIME={{ deployment_time }}
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
order: start-first
failure_action: rollback
labels:
- traefik.enable=true
- traefik.swarm.network=proxy
- traefik.http.routers.prometheus.tls=true
- traefik.http.routers.prometheus.tls.certResolver=letsencrypt
- traefik.http.routers.prometheus.rule=Host(`{{ prometheus_domain }}`)
- traefik.http.routers.prometheus.entrypoints=websecure
- traefik.http.services.prometheus.loadbalancer.server.port=9090
networks:
monint:
proxy:
external: true
metrics:
name: metrics
driver: overlay
attachable: true
|