steveternet/homepage/docker-compose.yml

28 lines
715 B
YAML
Raw Normal View History

2024-01-04 21:42:14 +00:00
version: "3.3"
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
volumes:
- homepage-config:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
environment:
- DOMAIN_ROOT=${DOMAIN_ROOT}
labels:
- "traefik.http.services.homepage.loadbalancer.server.port=3000"
- "traefik.enable=true"
- "traefik.http.routers.homepage.rule=Host(`home.${DOMAIN_ROOT}`)"
- 'traefik.http.routers.homepage.middlewares=authelia@docker'
networks:
- web
volumes:
homepage-config:
external: true
networks:
web:
external: true