Skip to content

Commit

Permalink
remove traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Feb 19, 2024
1 parent fba95a0 commit 4fc3236
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@ version: '3.8'

services:
# COMMENTED OUT UNTIL READY TO TEST
traefik:
restart: always
image: traefik:v2.4
container_name: traefik
command: >
--providers.docker=true
--providers.docker.exposedByDefault=false
--entrypoints.web.address=:80
--log.level=${LOG_LEVEL:-DEBUG}
--providers.docker=true
--providers.docker.exposedByDefault=false
--providers.file.filename=/var/traefik/dynamic.yml
--entrypoints.web.address=:80
--entrypoints.websecure.address=:443
--entrypoints.websecure.http.tls.certresolver=myresolver
--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL:[email protected]}
--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
--certificatesresolvers.myresolver.acme.httpchallenge=true
--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
--certificatesresolvers.myresolver.acme.caserver=${ACME_CA_SERVER:-https://acme-staging-v02.api.letsencrypt.org/directory}
labels:
# Traefik HTTPS Redirect
- "traefik.enable=true"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https-mddl@docker"
- "traefik.http.middlewares.redirect-to-https-mddl.redirectscheme.scheme=https"
volumes:
- "${SOCK_PATH:-/var/run/docker.sock}:/var/run/docker.sock"
- "./traefik/letsencrypt:/letsencrypt"
- "./traefik/dynamic.yml:/var/traefik/dynamic.yml:ro"
ports:
- "80:80"
- "443:443"
# traefik:
# restart: always
# image: traefik:v2.4
# container_name: traefik
# command: >
# --providers.docker=true
# --providers.docker.exposedByDefault=false
# --entrypoints.web.address=:80
# --log.level=${LOG_LEVEL:-DEBUG}
# --providers.docker=true
# --providers.docker.exposedByDefault=false
# --providers.file.filename=/var/traefik/dynamic.yml
# --entrypoints.web.address=:80
# --entrypoints.websecure.address=:443
# --entrypoints.websecure.http.tls.certresolver=myresolver
# --certificatesresolvers.myresolver.acme.email=${ACME_EMAIL:[email protected]}
# --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
# --certificatesresolvers.myresolver.acme.httpchallenge=true
# --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
# --certificatesresolvers.myresolver.acme.caserver=${ACME_CA_SERVER:-https://acme-staging-v02.api.letsencrypt.org/directory}
# labels:
# # Traefik HTTPS Redirect
# - "traefik.enable=true"
# - "traefik.http.routers.http-catchall.entrypoints=web"
# - "traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
# - "traefik.http.routers.http-catchall.middlewares=redirect-to-https-mddl@docker"
# - "traefik.http.middlewares.redirect-to-https-mddl.redirectscheme.scheme=https"
# volumes:
# - "${SOCK_PATH:-/var/run/docker.sock}:/var/run/docker.sock"
# - "./traefik/letsencrypt:/letsencrypt"
# - "./traefik/dynamic.yml:/var/traefik/dynamic.yml:ro"
# ports:
# - "80:80"
# - "443:443"

django:
build:
Expand Down Expand Up @@ -94,7 +94,7 @@ services:
- "traefik.http.routers.client-rtr.entrypoints=websecure"
- "traefik.http.routers.client-rtr.rule=Host(`batai.kitware.com`)"
- "traefik.enable=true"
- "traefik.http.services.client-svc.loadbalancer.server.port=80"
- "traefik.http.services.client-svc.loadbalancer.server.port=90"
- "traefik.http.routers.client-rtr.rule=HostRegexp(`{catchall:.*}`)"
postgres:
image: postgis/postgis:latest
Expand Down

0 comments on commit 4fc3236

Please sign in to comment.