1
0
Fork 0

Migrate traefik

This commit is contained in:
Florian RICHER 2023-06-09 01:17:47 +02:00
parent a1f36a44af
commit ff70a5455b
2 changed files with 5 additions and 7 deletions

View file

@ -5,7 +5,7 @@
roles:
- { role: docker, tags: ["docker"] }
- { role: ssh, tags: ["ssh"] }
# - { role: traefik, tags: ["traefik"] }
- { role: traefik, tags: ["traefik"] }
- { role: whoami, tags: ["whoami"] }
- { role: protonmail, tags: ["protonmail"] }
- { role: cloud, tags: ["cloud"] }

View file

@ -17,6 +17,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config/traefik.yml:/traefik.yml:ro
- ./config/acme.json:/acme.json:rw
- {{ server.work_dir }}/traefik/base/access.log:/var/log/traefik/access.log:rw
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
extra_hosts:
@ -51,7 +52,7 @@ services:
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus:/prometheus
- {{ server.work_dir }}/traefik/prometheus:/prometheus
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
@ -82,7 +83,7 @@ services:
restart: unless-stopped
container_name: grafana
volumes:
- grafana:/var/lib/grafana
- {{ server.work_dir }}/traefik/grafana:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
@ -105,6 +106,7 @@ services:
- "traefik.http.routers.grafana-secure.service=grafana"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
http_provider:
image: httpd:latest
restart: unless-stopped
@ -120,7 +122,3 @@ networks:
internal:
proxy:
external: true
volumes:
prometheus:
grafana: