Skip to content

Commit

Permalink
cleanup traefik labels
Browse files Browse the repository at this point in the history
  • Loading branch information
asim3 committed May 25, 2024
1 parent 5996cde commit 2c85bc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions setup/deploy/docker-compose-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ services:
replicas: 2
labels:
traefik.enable: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-stag-static-app.rule: Host(`my_project_name.static.asimt.sa`)
traefik.http.routers.${PROJECT_REPO_NAME}-stag-static-app.tls: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-stag-static-app.tls.certresolver: prodResolver
traefik.http.services.${PROJECT_REPO_NAME}-stag-static-svc.loadbalancer.server.port: 80
traefik.http.routers.my_project_name-stag-static-app.rule: Host(`my_project_name.static.asimt.sa`)
traefik.http.routers.my_project_name-stag-static-app.tls: "true"
traefik.http.routers.my_project_name-stag-static-app.tls.certresolver: prodResolver
traefik.http.services.my_project_name-stag-static-svc.loadbalancer.server.port: 80
resources:
reservations:
memory: 128M
Expand Down Expand Up @@ -101,10 +101,10 @@ services:
replicas: 1
labels:
traefik.enable: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-stag-app.rule: Host(`my_project_name.asimt.sa`)
traefik.http.routers.${PROJECT_REPO_NAME}-stag-app.tls: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-stag-app.tls.certresolver: prodResolver
traefik.http.services.${PROJECT_REPO_NAME}-stag-svc.loadbalancer.server.port: 8000
traefik.http.routers.my_project_name-stag-app.rule: Host(`my_project_name.asimt.sa`)
traefik.http.routers.my_project_name-stag-app.tls: "true"
traefik.http.routers.my_project_name-stag-app.tls.certresolver: prodResolver
traefik.http.services.my_project_name-stag-svc.loadbalancer.server.port: 8000
# https://doc.traefik.io/traefik/routing/providers/docker/
resources:
reservations:
Expand Down
16 changes: 8 additions & 8 deletions setup/deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ services:
replicas: 2
labels:
traefik.enable: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-prod-static-app.rule: Host(`static.my_project_name.sa`)
traefik.http.routers.${PROJECT_REPO_NAME}-prod-static-app.tls: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-prod-static-app.tls.certresolver: prodResolver
traefik.http.services.${PROJECT_REPO_NAME}-prod-static-svc.loadbalancer.server.port: 80
traefik.http.routers.my_project_name-prod-static-app.rule: Host(`static.my_project_name.sa`)
traefik.http.routers.my_project_name-prod-static-app.tls: "true"
traefik.http.routers.my_project_name-prod-static-app.tls.certresolver: prodResolver
traefik.http.services.my_project_name-prod-static-svc.loadbalancer.server.port: 80
resources:
reservations:
memory: 128M
Expand Down Expand Up @@ -101,10 +101,10 @@ services:
replicas: 1
labels:
traefik.enable: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-prod-app.rule: Host(`my_project_name.sa`)
traefik.http.routers.${PROJECT_REPO_NAME}-prod-app.tls: "true"
traefik.http.routers.${PROJECT_REPO_NAME}-prod-app.tls.certresolver: prodResolver
traefik.http.services.${PROJECT_REPO_NAME}-prod-svc.loadbalancer.server.port: 8000
traefik.http.routers.my_project_name-prod-app.rule: Host(`my_project_name.sa`)
traefik.http.routers.my_project_name-prod-app.tls: "true"
traefik.http.routers.my_project_name-prod-app.tls.certresolver: prodResolver
traefik.http.services.my_project_name-prod-svc.loadbalancer.server.port: 8000
# https://doc.traefik.io/traefik/routing/providers/docker/
resources:
reservations:
Expand Down

0 comments on commit 2c85bc2

Please sign in to comment.