2024-03-25 14:34:59 +01:00
|
|
|
---
|
2022-04-15 14:54:08 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
2023-07-17 12:33:30 +02:00
|
|
|
external: true
|
2022-04-15 14:54:08 +02:00
|
|
|
|
|
|
|
# https://vikunja.io/docs/full-docker-example/#example-with-traefik-2
|
|
|
|
|
|
|
|
services:
|
|
|
|
vikunja_api:
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vikunja}-api.rule=Host(`${VIKUNJA_DOMAIN:?err}`) && PathPrefix(`/api/v1`, `/dav/`, `/.well-known/`)
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vikunja}-api.entrypoints=${TRAEFIK_ENTRYPOINTS:-web}
|
|
|
|
vikunja_frontend:
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vikunja}-frontend.rule=Host(`${VIKUNJA_DOMAIN:?err}`)
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vikunja}-frontend.entrypoints=${TRAEFIK_ENTRYPOINTS:-web}
|