erigon-pulse/cmd/release/docker-compose.yml

46 lines
1.6 KiB
YAML
Raw Normal View History

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"
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