2023-08-13 04:49:19 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
image: traefik:v2.10
|
|
|
|
user: "5000:5000"
|
|
|
|
|
|
|
|
configs:
|
|
|
|
- source: mesh__traefik_static.toml
|
|
|
|
target: /etc/traefik/traefik.toml
|
|
|
|
uid: "5000"
|
|
|
|
gid: "5000"
|
|
|
|
|
|
|
|
- source: mesh__traefik_tls.toml
|
|
|
|
target: /etc/traefik/dynamic/tls.toml
|
|
|
|
uid: "5000"
|
|
|
|
gid: "5000"
|
|
|
|
|
|
|
|
- source: mesh__traefik_default_middlewares.toml
|
|
|
|
target: /etc/traefik/dynamic/default_middlewares.toml
|
|
|
|
uid: "5000"
|
|
|
|
gid: "5000"
|
|
|
|
|
2023-08-21 09:03:34 +02:00
|
|
|
- source: mesh__site-support__service.toml
|
2023-08-13 04:49:19 +02:00
|
|
|
target: /data-providers/site-support.toml
|
|
|
|
uid: "5000"
|
|
|
|
gid: "5000"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
|
2023-08-21 09:03:34 +02:00
|
|
|
- /data/volumes/mesh__traefik_certs/data:/data-certs:shared
|
2023-08-13 04:49:19 +02:00
|
|
|
|
|
|
|
ports:
|
|
|
|
## HTTP
|
|
|
|
- target: 80
|
|
|
|
published: 80
|
|
|
|
protocol: tcp
|
|
|
|
mode: host
|
|
|
|
|
|
|
|
## HTTPS
|
|
|
|
- target: 443
|
|
|
|
published: 443
|
|
|
|
protocol: tcp
|
|
|
|
mode: host
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
delay: 10s
|
|
|
|
order: stop-first
|
|
|
|
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 10s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
|
|
|
|
|
|
|
networks:
|
2023-08-21 09:03:34 +02:00
|
|
|
mesh_public:
|
|
|
|
aliases:
|
|
|
|
- "traefik.mesh"
|
2023-08-13 04:49:19 +02:00
|
|
|
|
|
|
|
####################
|
|
|
|
# - Resources
|
|
|
|
####################
|
|
|
|
configs:
|
|
|
|
mesh__traefik_static.toml:
|
|
|
|
external: true
|
|
|
|
mesh__traefik_tls.toml:
|
|
|
|
external: true
|
|
|
|
mesh__traefik_default_middlewares.toml:
|
|
|
|
external: true
|
2023-08-21 09:03:34 +02:00
|
|
|
mesh__site-support__service.toml:
|
2023-08-13 04:49:19 +02:00
|
|
|
external: true
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mesh_public:
|
|
|
|
external: true
|