-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.72 KB
/
docker-compose.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
version: "3"
services:
traefik:
image: traefik:v2.9
container_name: traefik
restart: always
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.yml:/etc/traefik/traefik.yml
- ./traefik/acme.json:/acme.json
- ./traefik/dynamic_conf.yml:/dynamic_conf.yml
labels:
# traefik.http.routers.traefik.rule: Host(`traefik.paturet.fr`)
# traefik.http.routers.traefik.entrypoints: websecure
# traefik.http.routers.traefik.tls.certresolver: letsEncryptResolver
traefik.http.routers.traefik.service: api@internal
environment:
- OVH_APPLICATION_KEY=928fff6b8428e0b1
- OVH_APPLICATION_SECRET=d49cfef34e17047865af9a3ef8956d83
- OVH_CONSUMER_KEY=883a4c01e05cdcd189ace6fa7deb7421
- OVH_ENDPOINT=ovh-eu
grafana:
image: grafana/grafana
restart: always
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-worldmap-panel
- GF_SECURITY_ADMIN_PASSWORD=nara
labels:
- traefik.enable=true
- traefik.http.routers.grafana.rule=Host(`grafana.paturet.fr`)
- traefik.http.routers.grafana.entrypoints=websecure
- traefik.http.routers.grafana.tls.certresolver=letsEncryptResolver
database:
image: postgres
restart: always
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: mydatabase
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
grafana-data:
postgres-data: