feat: routing bare metal
continuous-integration/drone/push Build is failing Details

This commit is contained in:
decentral1se 2023-04-20 21:19:47 +02:00
parent a213094d46
commit b00a65a890
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
4 changed files with 15 additions and 1 deletions

View File

@ -65,6 +65,12 @@ COMPOSE_FILE="compose.yml"
## used used by the coop-cloud monitoring stack
#METRICS_ENABLED=1
#####################################################################
# File provider directory configuration #
# (Route bare metal and non-docker services on the machine!) #
#####################################################################
#FILE_PROVIDER_DIRECTORY_ENABLED=1
#####################################################################
# Additional services #
#####################################################################

View File

@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v15
export FILE_PROVIDER_YML_VERSION=v6
export FILE_PROVIDER_YML_VERSION=v7
export ENTRYPOINT_VERSION=v2

View File

@ -13,6 +13,7 @@ services:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
- "file-providers:/etc/traefik/file-providers"
configs:
- source: traefik_yml
target: /etc/traefik/traefik.yml
@ -69,3 +70,4 @@ configs:
volumes:
letsencrypt:
file-providers:

View File

@ -8,8 +8,14 @@ providers:
exposedByDefault: false
network: proxy
swarmMode: true
{{ if eq (env "FILE_PROVIDER_DIRECTORY_ENABLED") "1" }}
file:
directory: /etc/traefik/file-providers
watch: true
{{ else }}
file:
filename: /etc/traefik/file-provider.yml
{{ end }}
api:
dashboard: {{ env "DASHBOARD_ENABLED" }}