homeserver/docker-compose/traefik/docker-compose.yml.j2

62 lines
1.9 KiB
Text
Raw Normal View History

version: '3'
services:
######## traefik ########
traefik:
container_name: traefik
chore(deps): update traefik docker tag to v2.11 (#672) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [traefik](https://github.com/containous/traefik) | minor | `2.10` -> `v2.11` | --- > ⚠ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>containous/traefik (traefik)</summary> ### [`v2.11`](https://github.com/containous/traefik/blob/HEAD/CHANGELOG.md#v2110-rc1-2024-01-02) [All Commits](https://github.com/traefik/traefik/compare/0a7964300166d167f68d5502bc245b3b9c8842b4...v2.11.0-rc1) **Enhancements:** - **\[middleware]** Deprecate IPWhiteList middleware in favor of IPAllowList ([#&#8203;10249](https://github.com/traefik/traefik/pull/10249) by [lbenguigui](https://github.com/lbenguigui)) - **\[redis]** Add Redis Sentinel support ([#&#8203;10245](https://github.com/traefik/traefik/pull/10245) by [youkoulayley](https://github.com/youkoulayley)) - **\[server]** Add KeepAliveMaxTime and KeepAliveMaxRequests features to entrypoints ([#&#8203;10247](https://github.com/traefik/traefik/pull/10247) by [juliens](https://github.com/juliens)) - **\[sticky-session]** Hash WRR sticky cookies ([#&#8203;10243](https://github.com/traefik/traefik/pull/10243) by [youkoulayley](https://github.com/youkoulayley)) **Bug fixes:** - **\[file]** Update github.com/fsnotify/fsnotify to v1.7.0 ([#&#8203;10313](https://github.com/traefik/traefik/pull/10313) by [ldez](https://github.com/ldez)) - **\[http3]** Update quic-go to v0.40.1 ([#&#8203;10296](https://github.com/traefik/traefik/pull/10296) by [ldez](https://github.com/ldez)) - **\[server]** Fix ReadHeaderTimeout for PROXY protocol ([#&#8203;10320](https://github.com/traefik/traefik/pull/10320) by [juliens](https://github.com/juliens)) **Documentation:** - **\[acme]** Fix TLS challenge explanation ([#&#8203;10293](https://github.com/traefik/traefik/pull/10293) by [cavokz](https://github.com/cavokz)) - **\[docker,acme]** Fix typo ([#&#8203;10294](https://github.com/traefik/traefik/pull/10294) by [youpsla](https://github.com/youpsla)) - **\[docker]** Update wording of compose example ([#&#8203;10276](https://github.com/traefik/traefik/pull/10276) by [svx](https://github.com/svx)) - **\[k8s/crd]** Adjust deprecation notice for Kubernetes CRD provider ([#&#8203;10317](https://github.com/traefik/traefik/pull/10317) by [rtribotte](https://github.com/rtribotte)) - Fix description for anonymous usage statistics references ([#&#8203;10287](https://github.com/traefik/traefik/pull/10287) by [ariyonaty](https://github.com/ariyonaty)) - Documentation enhancements ([#&#8203;10261](https://github.com/traefik/traefik/pull/10261) by [svx](https://github.com/svx)) ### [`v2.11`](https://github.com/containous/traefik/blob/HEAD/CHANGELOG.md#v2110-rc1-2024-01-02) [All Commits](https://github.com/traefik/traefik/compare/0a7964300166d167f68d5502bc245b3b9c8842b4...v2.11.0-rc1) **Enhancements:** - **\[middleware]** Deprecate IPWhiteList middleware in favor of IPAllowList ([#&#8203;10249](https://github.com/traefik/traefik/pull/10249) by [lbenguigui](https://github.com/lbenguigui)) - **\[redis]** Add Redis Sentinel support ([#&#8203;10245](https://github.com/traefik/traefik/pull/10245) by [youkoulayley](https://github.com/youkoulayley)) - **\[server]** Add KeepAliveMaxTime and KeepAliveMaxRequests features to entrypoints ([#&#8203;10247](https://github.com/traefik/traefik/pull/10247) by [juliens](https://github.com/juliens)) - **\[sticky-session]** Hash WRR sticky cookies ([#&#8203;10243](https://github.com/traefik/traefik/pull/10243) by [youkoulayley](https://github.com/youkoulayley)) **Bug fixes:** - **\[file]** Update github.com/fsnotify/fsnotify to v1.7.0 ([#&#8203;10313](https://github.com/traefik/traefik/pull/10313) by [ldez](https://github.com/ldez)) - **\[http3]** Update quic-go to v0.40.1 ([#&#8203;10296](https://github.com/traefik/traefik/pull/10296) by [ldez](https://github.com/ldez)) - **\[server]** Fix ReadHeaderTimeout for PROXY protocol ([#&#8203;10320](https://github.com/traefik/traefik/pull/10320) by [juliens](https://github.com/juliens)) **Documentation:** - **\[acme]** Fix TLS challenge explanation ([#&#8203;10293](https://github.com/traefik/traefik/pull/10293) by [cavokz](https://github.com/cavokz)) - **\[docker,acme]** Fix typo ([#&#8203;10294](https://github.com/traefik/traefik/pull/10294) by [youpsla](https://github.com/youpsla)) - **\[docker]** Update wording of compose example ([#&#8203;10276](https://github.com/traefik/traefik/pull/10276) by [svx](https://github.com/svx)) - **\[k8s/crd]** Adjust deprecation notice for Kubernetes CRD provider ([#&#8203;10317](https://github.com/traefik/traefik/pull/10317) by [rtribotte](https://github.com/rtribotte)) - Fix description for anonymous usage statistics references ([#&#8203;10287](https://github.com/traefik/traefik/pull/10287) by [ariyonaty](https://github.com/ariyonaty)) - Documentation enhancements ([#&#8203;10261](https://github.com/traefik/traefik/pull/10261) by [svx](https://github.com/svx)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/672 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:07:33 +01:00
image: "traefik:v2.11@sha256:6ebe52de2d715b757dc47b7ab1b3350c84a333472a6b1c02f816c874a5c14122"
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml
- ./file-provider.yml:/etc/traefik/file-provider.yml
- acme_data:/etc/traefik/acme
networks:
- traefik
ports:
- "80:80" # HTTP
- "8081:8080" # Web-GUI
- "443:443" # HTTPS
- "2222:2222" # SSH
environment:
TZ: Europe/Berlin
labels:
com.centurylinklabs.watchtower.enable: true
######## nforwardauth ########
nforwardauth:
restart: always
image: "nosduco/nforwardauth:v1.4.0@sha256:16e38db002d27758bdc53c70ba12113d84158c758efe930c97c6e9e2bf612a5d"
container_name: traefik-nforwardauth
environment:
TOKEN_SECRET: "{{ lookup('keepass', 'nforwardauth_token_secret', 'password') }}"
AUTH_HOST: auth.mgrote.net
labels:
traefik.enable: true
traefik.http.routers.nforwardauth.rule: Host(`auth.mgrote.net`)
traefik.http.middlewares.nforwardauth.forwardauth.address: http://nforwardauth:3000
traefik.http.services.nforwardauth.loadbalancer.server.port: 3000
traefik.http.routers.nforwardauth.tls: true
traefik.http.routers.nforwardauth.tls.certresolver: resolver_letsencrypt
traefik.http.routers.nforwardauth.entrypoints: entry_https
com.centurylinklabs.watchtower.depends-on: traefik
com.centurylinklabs.watchtower.enable: true
volumes:
- "./passwd:/passwd:ro" # Mount local passwd file at /passwd as read only
networks:
- traefik
######## Networks ########
networks:
traefik:
external: true
######## Volumes ########
volumes:
acme_data:
# passwd
# echo "<user>:$(mkpasswd -m sha-512 <password>)"