Skip to content

Commit

Permalink
feat: extract traefik settings to https://github.com/woto/traefik-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
woto committed Jan 6, 2024
1 parent 12370ba commit 0f44ea7
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ services:
- "traefik.http.routers.roastme_ru.rule=Host(`roastme.ru`)"
- "traefik.http.routers.roastme_ru.entrypoints=websecure"
- "traefik.http.routers.roastme_ru.tls.certresolver=myresolver"
networks:
- default
- traefik
restart: always

sidekiq:
Expand Down Expand Up @@ -207,7 +210,6 @@ services:
- "traefik.http.routers.imgproxy.tls.certresolver=myresolver"
restart: always


prometheus:
image: prom/prometheus:v2.16.0
volumes:
Expand Down Expand Up @@ -244,33 +246,6 @@ services:
- ${PUSHGATEWAY_PORT}:9091
restart: always

traefik:
image: traefik:v2.4
command:
- "--accesslog=true"
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "[email protected]"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"

ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: always

volumes:
rails_storage:
rails_sitemaps:
Expand All @@ -279,3 +254,7 @@ volumes:
redis:
postgres:
elastic:

networks:
traefik:
external: true

0 comments on commit 0f44ea7

Please sign in to comment.