Compare commits

...

6 Commits

Author SHA1 Message Date
3wc
892f3c3124 chore: publish 2.2.0+v2.10.2 release
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-27 16:12:25 -04:00
3wc
4205f4911e Bump TRAEFIK_YML_VERSION 2023-04-27 16:12:03 -04:00
3wc
13eb4a782d chore: publish 2.2.0+v2.10.1 release 2023-04-27 15:58:01 -04:00
b00a65a890 feat: routing bare metal
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-20 21:19:47 +02:00
a213094d46 add timeout label
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-18 18:36:09 +02:00
8bb3adba81 add auto update and timeout env
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-18 18:26:15 +02:00
4 changed files with 21 additions and 4 deletions

View File

@ -1,4 +1,6 @@
TYPE=traefik
TIMEOUT=300
ENABLE_AUTO_UPDATE=true
DOMAIN=traefik.example.com
LETS_ENCRYPT_ENV=production
@ -63,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 TRAEFIK_YML_VERSION=v16
export FILE_PROVIDER_YML_VERSION=v7
export ENTRYPOINT_VERSION=v2

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "traefik:v2.9.9"
image: "traefik:v2.10.1"
# Note(decentral1se): *please do not* add any additional ports here.
# Doing so could break new installs with port conflicts. Please use
# the usual `compose.$app.yml` approach for any additional ports
@ -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
@ -46,7 +47,8 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.service=api@internal"
- "traefik.http.routers.${STACK_NAME}.middlewares=security@file"
- "coop-cloud.${STACK_NAME}.version=2.1.0+v2.9.9"
- "coop-cloud.${STACK_NAME}.version=2.2.0+v2.10.2"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
networks:
proxy:
@ -68,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" }}