2024-05-03 20:37:56 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2024-05-17 21:26:23 +00:00
|
|
|
reverse-proxy:
|
|
|
|
# The official v3 Traefik docker image
|
|
|
|
image: traefik:v3.0
|
|
|
|
# Enables the web UI and tells Traefik to listen to docker
|
2024-05-17 21:41:25 +00:00
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- default
|
2024-05-03 20:37:56 +00:00
|
|
|
ports:
|
2024-05-17 21:26:23 +00:00
|
|
|
# The HTTP port
|
2024-05-20 11:39:50 +00:00
|
|
|
- "1080:80"
|
|
|
|
- "1443:443"
|
2024-05-17 21:26:23 +00:00
|
|
|
# The Web UI (enabled by --api.insecure=true)
|
|
|
|
- "8088:8080"
|
2024-05-03 20:37:56 +00:00
|
|
|
volumes:
|
2024-05-17 21:26:23 +00:00
|
|
|
- /volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml
|
2024-05-18 21:42:12 +00:00
|
|
|
- /volume1/docker/traefik/conf/rules.yaml:/etc/traefik/rules.yaml
|
2024-05-17 21:26:23 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2024-05-04 16:36:40 +00:00
|
|
|
|
2024-05-03 21:16:58 +00:00
|
|
|
whoami:
|
|
|
|
# A container that exposes an API to show its IP address
|
|
|
|
image: traefik/whoami
|
|
|
|
labels:
|
2024-05-20 11:39:50 +00:00
|
|
|
labels:
|
|
|
|
- traefik.http.routers.blog.rule=Host(`huguettes.freeboxos.fr`) && Path(`/whoami`)
|
|
|
|
- traefik.http.routers.blog.tls=true
|
|
|
|
- traefik.http.routers.blog.tls.certresolver=myresolver
|
2024-05-17 21:40:11 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|