Final changes to traefik and up and running

This commit is contained in:
Mike Wilson
2023-02-15 15:15:33 -05:00
parent 901199d2b7
commit 76b2dccc5e
15 changed files with 101 additions and 36 deletions

View File

@@ -3,11 +3,15 @@ version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
docker-socket-proxy:
external: false
services:
traefik:
container_name: traefik
image: traefik:latest
image: traefik:v2.9
depends_on:
- docker_socket_proxy
networks:
- traefik
- docker-socket-proxy
@@ -24,3 +28,15 @@ services:
traefik.http.routers.traefik-dashboard.rule: "Host(`traefik.local.{{ personal_domain }}`)"
traefik.http.routers.traefik-dashboard.service: api@internal
traefik.http.routers.traefik-dashboard.middlewares: lan-whitelist@file
docker_socket_proxy:
image: tecnativa/docker-socket-proxy:latest
restart: unless-stopped
networks:
- docker-socket-proxy
environment:
- CONTAINERS=1
- SERVICES=1
- INFO=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro