Migrate traefik
This commit is contained in:
parent
a1f36a44af
commit
ff70a5455b
2 changed files with 5 additions and 7 deletions
|
@ -5,7 +5,7 @@
|
||||||
roles:
|
roles:
|
||||||
- { role: docker, tags: ["docker"] }
|
- { role: docker, tags: ["docker"] }
|
||||||
- { role: ssh, tags: ["ssh"] }
|
- { role: ssh, tags: ["ssh"] }
|
||||||
# - { role: traefik, tags: ["traefik"] }
|
- { role: traefik, tags: ["traefik"] }
|
||||||
- { role: whoami, tags: ["whoami"] }
|
- { role: whoami, tags: ["whoami"] }
|
||||||
- { role: protonmail, tags: ["protonmail"] }
|
- { role: protonmail, tags: ["protonmail"] }
|
||||||
- { role: cloud, tags: ["cloud"] }
|
- { role: cloud, tags: ["cloud"] }
|
||||||
|
|
|
@ -17,6 +17,7 @@ services:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./config/traefik.yml:/traefik.yml:ro
|
- ./config/traefik.yml:/traefik.yml:ro
|
||||||
- ./config/acme.json:/acme.json:rw
|
- ./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/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -51,7 +52,7 @@ services:
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/:/etc/prometheus/
|
- ./prometheus/:/etc/prometheus/
|
||||||
- prometheus:/prometheus
|
- {{ server.work_dir }}/traefik/prometheus:/prometheus
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
command:
|
command:
|
||||||
|
@ -82,7 +83,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
volumes:
|
volumes:
|
||||||
- grafana:/var/lib/grafana
|
- {{ server.work_dir }}/traefik/grafana:/var/lib/grafana
|
||||||
- ./grafana/provisioning:/etc/grafana/provisioning
|
- ./grafana/provisioning:/etc/grafana/provisioning
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
@ -105,6 +106,7 @@ services:
|
||||||
- "traefik.http.routers.grafana-secure.service=grafana"
|
- "traefik.http.routers.grafana-secure.service=grafana"
|
||||||
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
|
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.docker.network=proxy"
|
||||||
|
|
||||||
http_provider:
|
http_provider:
|
||||||
image: httpd:latest
|
image: httpd:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -120,7 +122,3 @@ networks:
|
||||||
internal:
|
internal:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
volumes:
|
|
||||||
prometheus:
|
|
||||||
grafana:
|
|
||||||
|
|
Loading…
Reference in a new issue