9bc6e64b81
Added labels and network for traefik
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
---
|
|
version: "2.1"
|
|
services:
|
|
homeassistant:
|
|
image: lscr.io/linuxserver/homeassistant:latest
|
|
container_name: homeassistant
|
|
networks:
|
|
- traefik-public
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.monitor-only=true"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.immich.rule=Host(`photos.speerfam.net`)"
|
|
- "traefik.http.routers.immich.entrypoints=websecure"
|
|
- "traefik.http.routers.immich.tls.certresolver=myresolver"
|
|
|
|
# Pulling the security rules dynamically from our file provider setup
|
|
- "traefik.http.routers.immich.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
|
|
- "traefik.http.services.immich.loadbalancer.server.port=2283"
|
|
network_mode: host
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=America/Chicago
|
|
volumes:
|
|
- /srv/docker/homeassistant:/config
|
|
ports:
|
|
- 8123:8123
|
|
# devices:
|
|
# - /path/to/device:/path/to/device #optional
|
|
restart: always
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true |