erigon-pulse/cmd/release/docker-compose.yml
Max Revitt 82217f5411
fix(release): download page https redirect (#7120)
Updated initial traefik config so the http -> https redirect on
download.erigon.sh will work.
2023-03-17 03:29:09 +00:00

47 lines
1.6 KiB
YAML

version: "3"
services:
traefik:
image: traefik:latest
restart: always
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.email=max.revitt@gateway.fm"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--middlewares.redirectscheme.scheme=https"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./letsencrypt:/letsencrypt"
networks:
- traefik
download:
image: thorax/download:latest
restart: always
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true"
- "traefik.http.routers.app-insecure.rule=Host(`download.erigon.ch`)"
- "traefik.http.routers.app-insecure.entrypoints=web"
- "traefik.http.routers.app-insecure.middlewares=redirect-to-https"
- "traefik.http.routers.app-secure.rule=Host(`download.erigon.ch`)"
- "traefik.http.routers.app-secure.entrypoints=websecure"
- "traefik.http.routers.app-secure.tls=true"
- "traefik.http.routers.app-secure.tls.certresolver=letsencrypt"
- "traefik.http.services.app.loadbalancer.server.port=80"
networks:
- traefik
networks:
traefik:
name: traefik