-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (113 loc) · 3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (113 loc) · 3 KB
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
version: '3.4'
services:
traefik:
image: traefik:v2.5
command:
- "--ping=true"
- "--log.level=ERROR"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
networks:
- 'tick'
ports:
- "${TRAEFIK_BIND_ADDRESS:-0.0.0.0}:${TRAEFIK_BIND_PORT:-80}:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.traefik.rule=PathPrefix(`/traefik/api`) || PathPrefix(`/traefik/dashboard`)'
- 'traefik.http.routers.traefik.entrypoints=web'
- 'traefik.http.routers.traefik.service=api@internal'
- 'traefik.http.routers.traefik.middlewares=traefik-auth'
- 'traefik.http.middlewares.traefik-auth.basicauth.users=admin:{SHA}0tTNr469Z7oY3fDRwNoUXE2vTBw='
depends_on:
grafana:
condition: service_healthy
influxdb:
condition: service_healthy
healthcheck:
test: traefik healthcheck --ping
start_period: 5s
interval: 5s
retries: 30
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
grafana:
image: grafana/grafana-oss
volumes:
- grafana-var-lib-grafana:/var/lib/grafana
env_file: .env.grafana
networks:
- 'tick'
depends_on:
influxdb:
condition: service_healthy
mail:
condition: service_healthy
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.entrypoints=web"
- "traefik.http.routers.grafana.rule=PathPrefix(`/grafana`)"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
healthcheck:
test: /bin/bash -c "</dev/tcp/localhost/3000"
start_period: 5s
interval: 5s
retries: 30
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
influxdb:
image: influxdb:2.2
volumes:
- influxdb-var-lib-influxdb:/var/lib/influxdb2
networks:
- 'tick'
env_file: .env.influx
healthcheck:
test: /bin/bash -c "</dev/tcp/localhost/8086"
start_period: 5s
interval: 5s
retries: 30
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.influxdb.entrypoints=web"
- "traefik.http.routers.influxdb.rule=PathPrefix(`/`)"
- "traefik.http.services.influxdb.loadbalancer.server.port=8086"
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
mail:
image: "namshi/smtp"
env_file: .env.mail
environment:
PORT: 1025
networks:
- 'tick'
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
healthcheck:
test: /bin/bash -c "</dev/tcp/localhost/1025"
start_period: 5s
interval: 5s
networks:
tick:
volumes:
grafana-var-lib-grafana:
driver: local
influxdb-var-lib-influxdb:
driver: local