services:
  # Static landing page
  landing:
    build:
      context: ./landing
      dockerfile: Dockerfile
    container_name: rswag-landing
    restart: unless-stopped
    networks:
      - traefik-public
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.rswag-landing.rule=Host(`rswag.online`) || Host(`www.rswag.online`)"
      - "traefik.http.routers.rswag-landing.entrypoints=web"
      - "traefik.http.services.rswag-landing.loadbalancer.server.port=80"
      - "traefik.docker.network=traefik-public"

networks:
  traefik-public:
    external: true
