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-22 06:28:06 +00:00
|
|
|
#network_mode: "host"
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- default
|
2024-05-22 14:28:40 +00:00
|
|
|
ports:
|
2024-05-17 21:26:23 +00:00
|
|
|
# The HTTP port
|
2024-05-22 14:28:40 +00:00
|
|
|
- "1080:80"
|
|
|
|
- "1443:443"
|
2024-05-17 21:26:23 +00:00
|
|
|
# The Web UI (enabled by --api.insecure=true)
|
2024-05-22 14:28:40 +00:00
|
|
|
- "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-21 06:25:09 +00:00
|
|
|
- /volume1/docker/traefik/acme:/etc/traefik/acme
|
2024-05-17 21:26:23 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2024-05-20 15:12:42 +00:00
|
|
|
labels:
|
2024-05-20 15:14:17 +00:00
|
|
|
- traefik.enable=true
|
2024-05-20 15:30:43 +00:00
|
|
|
- traefik.http.routers.api.rule=Host(`huguettes.freeboxos.fr`) && Path(`/dashboard`)
|
2024-05-20 15:23:41 +00:00
|
|
|
- traefik.http.routers.api.tls=true
|
2024-05-20 15:27:34 +00:00
|
|
|
- traefik.http.routers.api.entrypoints=websecure
|
2024-05-20 15:23:41 +00:00
|
|
|
- traefik.http.routers.api.tls.certResolver=myresolver
|
2024-05-20 15:30:43 +00:00
|
|
|
- traefik.http.routers.api.service=dashboard@internal
|
2024-05-20 15:12:42 +00:00
|
|
|
|
|
|
|
|
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`)
|
2024-05-21 06:32:18 +00:00
|
|
|
- traefik.http.routers.blog.tls=true
|
|
|
|
- traefik.http.routers.blog.tls.certresolver=myresolver
|
2024-05-17 21:40:11 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
2024-05-22 14:28:40 +00:00
|
|
|
external: true
|