diff options
Diffstat (limited to 'docker-compose/docker-compose-with-traefik.yml')
-rw-r--r-- | docker-compose/docker-compose-with-traefik.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docker-compose/docker-compose-with-traefik.yml b/docker-compose/docker-compose-with-traefik.yml new file mode 100644 index 00000000..91a1d551 --- /dev/null +++ b/docker-compose/docker-compose-with-traefik.yml @@ -0,0 +1,29 @@ +version: "3.9" +services: + reverse-proxy: + image: traefik + command: --api --docker + ports: + - "80:80" + - "8080:8080" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + whoami: + image: emilevauge/whoami + labels: + - "traefik.frontend.rule=Host:whoami.docker.localhost" + + monitoring: + image: nicolargo/glances:alpine-dev + restart: unless-stopped + pid: host + privileged: true + network_mode: "host" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + - "GLANCES_OPT=-w" + labels: + - "traefik.port=61208" + - "traefik.frontend.rule=Host:glances.docker.localhost" |