diff --git a/docker-compose.yml b/docker-compose.yml index f71ad57..43397a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -108,8 +108,9 @@ services: - google_application_credentials labels: - "traefik.enable=true" - - "traefik.http.routers.proximity_app.rule=PathPrefix(`/proximity`)" - - "traefik.http.routers.proximity_app.entrypoints=web" + - "traefik.http.routers.proximity_app.rule=Host(`spatiumsocialis.com`) && PathPrefix(`/proximity`)" + - "traefik.http.routers.proximity_app.entrypoints=websecure" + - "traefik.http.routers.proximity_app.tls.certresolver=myresolver" proximity_consumer: image: ${GOOGLE_GCR_HOSTNAME}/${GOOGLE_PROJECT_ID}/proximity_consumer:latest environment: @@ -134,8 +135,9 @@ services: - google_application_credentials labels: - "traefik.enable=true" - - "traefik.http.routers.scoring_app.rule=PathPrefix(`/scores`)" - - "traefik.http.routers.scoring_app.entrypoints=web" + - "traefik.http.routers.scoring_app.rule=Host(`spatiumsocialis.com`) && PathPrefix(`/scores`)" + - "traefik.http.routers.scoring_app.entrypoints=websecure" + - "traefik.http.routers.scoring_app.tls.certresolver=myresolver" scoring_consumer: image: ${GOOGLE_GCR_HOSTNAME}/${GOOGLE_PROJECT_ID}/scoring_consumer:latest environment: @@ -165,8 +167,9 @@ services: - google_application_credentials labels: - "traefik.enable=true" - - "traefik.http.routers.location-app.rule=PathPrefix(`/location`)" - - "traefik.http.routers.location-app.entrypoints=web" + - "traefik.http.routers.location_app.rule=Host(`spatiumsocialis.com`) && PathPrefix(`/location`)" + - "traefik.http.routers.location_app.entrypoints=websecure" + - "traefik.http.routers.location_app.tls.certresolver=myresolver" db: image: postgres:latest environment: