mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
82217f5411
Updated initial traefik config so the http -> https redirect on download.erigon.sh will work.
47 lines
1.6 KiB
YAML
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
|