-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdashpi.yml
58 lines (56 loc) · 1.78 KB
/
dashpi.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
version: '3.7'
services:
app:
image: chaosdorf/dashpi:latest
environment:
- TRAFFIC_HOST=feedback.chaosdorf.space
- MOSQUITTO_HOST=mqttserver.chaosdorf.space
- PING_HOST=speedtest-2.unitymedia.de
secrets:
- DASHING_AUTH_TOKEN
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- source: DASHPI_SENTRY_DSN
target: SENTRY_DSN
networks:
- traefik
deploy:
mode: replicated
replicas: 1
restart_policy:
delay: 60s
max_attempts: 5
update_config:
order: start-first
labels:
- traefik.swarm.network=traefik_net
- traefik.http.services.dashpi.loadbalancer.server.port=3030
- "traefik.http.routers.dashpi-http.rule=Host(`dashboard.chaosdorf.space`) || Host(`dashboard`)"
- traefik.http.routers.dashpi-http.middlewares=global-headers@file
- traefik.http.routers.dashpi-http.service=dashpi@swarm
- "traefik.http.routers.dashpi-https.rule=Host(`dashboard.chaosdorf.space`) || Host(`dashboard`)"
- traefik.http.routers.dashpi-https.middlewares=global-headers@file
- traefik.http.routers.dashpi-https.service=dashpi@swarm
- traefik.http.routers.dashpi-https.tls=true
- traefik.http.routers.dashpi-https.tls.certresolver=default
- traefik.http.routers.dashpi-https.tls.domains[0].main=*.chaosdorf.space
networks:
traefik:
driver: overlay
external: true
name: traefik_net
secrets:
DASHING_AUTH_TOKEN:
external: true
TWITTER_ACCESS_TOKEN:
external: true
TWITTER_ACCESS_TOKEN_SECRET:
external: true
TWITTER_CONSUMER_KEY:
external: true
TWITTER_CONSUMER_SECRET:
external: true
DASHPI_SENTRY_DSN:
external: true