services: traefik: image: traefik:latest container_name: traefik ports: - "80:80" - "443:443" volumes: - "/var/run/docker.sock:/var/run/docker.sock" restart: always command: - "--providers.docker=true" - "--providers.docker.exposedByDefault=false" - "--entrypoints.web.address=:80" - "--entrypoints.web-secure.address=:443" - "--accesslog=true" - "--entrypoints.web.http.redirections.entryPoint.to=web-secure" - "--entrypoints.web.http.redirections.entryPoint.scheme=https" - "--entrypoints.web.http.redirections.entrypoint.permanent=true" api: image: siteworxpro/gun-manager:v1.1.0 container_name: gun-manager labels: - "traefik.enable=true" - "traefik.http.routers.api.entrypoints=web-secure" - "traefik.http.routers.api.rule=Host(`localhost`) || Host(`127.0.0.1`)" - "traefik.http.routers.api.tls=true" - "traefik.http.services.api.loadbalancer.server.port=8000" volumes: - ./data:/app/data command: - "-database" - "./data/gun_inventory.sqlite" environment: CORS_ORIGINS: "https://localhost"