services:
  backlog:
    build: .
    container_name: backlog-md
    restart: unless-stopped
    volumes:
      # Persist backlog data
      - ./backlog:/app/backlog
      - backlog-data:/app/.backlog
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.backlog.rule=Host(`backlog.jeffemmett.com`)"
      - "traefik.http.routers.backlog.entrypoints=web"
      - "traefik.http.services.backlog.loadbalancer.server.port=6420"
      - "traefik.docker.network=traefik-public"
    networks:
      - traefik-public
    environment:
      - PORT=6420
      - NODE_ENV=production

volumes:
  backlog-data:

networks:
  traefik-public:
    external: true
