aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.traefik.yml
blob: a1b6994e30acb7bd37be357161931a35e1f2b5c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
  app:
    ports: !reset
    networks:
      - default
      - docker-ingress
    environment:
      - SECRET_KEY=${SECRET_KEY:?SECRET_KEY is required}
      - DATABASE_URL=postgresql://slotfinder:${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}@postgres/slotfinder
      - OIDC_CLIENT_ID=${OIDC_CLIENT_ID:?OIDC_CLIENT_ID is required}
      - OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:?OIDC_CLIENT_SECRET is required}
      - OIDC_DISCOVERY_URL=${OIDC_DISCOVERY_URL:?OIDC_DISCOVERY_URL is required}
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.slotfinder.rule=Host(`${SLOTFINDER_HOST:?SLOTFINDER_HOST is required}`)"

  postgres:
    ports: []
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}

networks:
  docker-ingress:
    external: true