2024-02-08 12:28:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2024-02-08 14:28:28 +01:00
|
|
|
|
2024-02-08 12:28:51 +01:00
|
|
|
postgrest:
|
|
|
|
networks:
|
|
|
|
- traefik
|
2024-02-08 14:28:28 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_postgrest.rule=Host(`${POSTGREST_DOMAIN:?err}`)
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_postgrest.entrypoints=${TRAEFIK_ENTRYPOINTS:-websecure}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_postgrest.tls.certResolver=letsencrypt
|
2024-02-08 12:28:51 +01:00
|
|
|
|
|
|
|
swagger:
|
|
|
|
networks:
|
2024-02-08 14:28:28 +01:00
|
|
|
- traefik
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_swagger.rule=Host(`${SWAGGER_DOMAIN:?err}`)
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_swagger.entrypoints=${TRAEFIK_ENTRYPOINTS:-websecure}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-opendata}_swagger.tls.certResolver=letsencrypt
|
|
|
|
- traefik.http.services.${TRAEFIK_ROUTER_NAME:-opendata}_swagger.loadbalancer.server.port=8080
|