homepage/docker-compose.yml
2023-01-10 09:16:30 +01:00

27 lines
No EOL
996 B
YAML

---
version: '3'
services:
homepage:
image: codeberg.org/angestoepselt/homepage:${BRANCH:-main}
container_name: homepage-${BRANCH:-main}
restart: unless-stopped
env_file: stack.env
security_opt:
- no-new-privileges:true
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.homepage-${BRANCH:-main}-secure.rule=Host(`${DOMAIN}`,`www.${DOMAIN}`)"
- "traefik.http.routers.homepage-${BRANCH:-main}-secure.entrypoints=websecure"
- "traefik.http.routers.homepage-${BRANCH:-main}-secure.tls.certresolver=letsencrypt"
- "traefik.http.routers.homepage-${BRANCH:-main}-secure.tls=true"
- "traefik.http.routers.homepage-${BRANCH:-main}.middlewares=redirect-www-to-non-www@file"
- "traefik.http.routers.contactform-geoblock.rule=Path(`/kontakt`)"
- "traefik.http.routers.contactform-geoblock.middlewares=GeoBlock@file"
networks:
- proxy
networks:
proxy:
external: true