diff --git a/docker-compose.yaml b/docker-compose.yaml index 4b3f7f9..6c9dd7b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -18,6 +18,20 @@ services: ports: - "8083:80" # - "443:443" + labels: + - "traefik.enable=true" + - "traefik.http.routers.phxalpha.entrypoints=https" + - "traefik.http.routers.phxalpha.rule=Host(`phx.yurilima.uk`)" + - "traefik.http.routers.phxalpha.middlewares=secHeaders@file" + - "traefik.http.routers.phxalpha.tls=true" + - "traefik.http.routers.phxalpha.tls.certresolver=http" + - "traefik.http.routers.phxalpha.service=phxalpha" + - "traefik.http.services.phxalpha.loadbalancer.server.port=80" + - "traefik.docker.network=proxy" + + - "traefik.http.routers.phxalpha-insecure.entrypoints=http" + - "traefik.http.routers.phxalpha-insecure.rule=Host(`phx.yurilima.uk`)" + - "traefik.http.routers.phxalpha-insecure.tls=false" networks: - frontend depends_on: