Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Aug 7, 2024
1 parent 8fe91f8 commit b9efaec
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions web_api/docker-compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,12 @@ services:
working_dir: /app/app
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.osm_web_api.rule=Host(`osm.pythonaisolutions.com`)
- "traefik.http.routers.osm_web_api.entrypoints=web,websecure"
# use the "le" (Let's Encrypt) resolver to get Let's Encrypt certificates
- traefik.http.routers.osm_web_api.tls=true
- traefik.http.routers.osm_web_api.tls.certresolver=le
# - traefik.http.services.osm_web_api-http.loadbalancer.server.port=80
# - traefik.http.routers.osm_web_api-https.rule=Host(`osm.pythonaisolutions.com`)
# - traefik.http.routers.osm_web_api-https.tls=true
- traefik.docker.network=traefik-public
# https-redirect middleware
# - traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
# - traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
# # apply the redirect middleware to the http router
# - traefik.http.routers.osm_web_api.middlewares=https-redirect
networks:
- traefik-public

Expand All @@ -29,19 +21,18 @@ services:
restart: always
container_name: traefik
command:
# - --api
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.web.http.redirections.entryPoint.scheme=https
- --entrypoints.websecure.address=:443
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- "--certificatesresolvers.le.acme.email={{ cert_email }}"
- --certificatesresolvers.le.acme.storage=/certificates/acme.json
- --certificatesresolvers.le.acme.tlschallenge=true
- --log
- --accesslog
- --api.insecure=true
# - --api
ports:
- 80:80
- 8080:8080
Expand All @@ -52,19 +43,6 @@ services:
networks:
- traefik-public


# whoami:
# image: "traefik/whoami"
# container_name: "simple-service"
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.whoami.rule=Host(`osm.pythonaisolutions.com`)"
# - "traefik.http.routers.whoami.entrypoints=https"
# - "traefik.http.routers.whoami.tls.certresolver=le"
# networks:
# - traefik-public


volumes:
traefik-public-certificates:

Expand Down

0 comments on commit b9efaec

Please sign in to comment.