Added docker-compose home

This commit is contained in:
willem.serruys
2025-10-04 17:18:13 +02:00
parent e30efb0c67
commit a4d9535851
2 changed files with 20 additions and 10 deletions

19
docker-compose-home.yml Normal file
View File

@@ -0,0 +1,19 @@
services:
syncthing-home:
image: syncthing/syncthing
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ${STORAGE_DIR}/syncthing:/var/syncthing
restart: unless-stopped
env_file:
- environment-variables/local.env
ports:
- 127.0.0.1:8384:8384
healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
interval: 1m
timeout: 10s
retries: 3

View File

@@ -41,7 +41,7 @@ services:
- ${STORAGE_DIR}/mariadb:/var/lib/mysql - ${STORAGE_DIR}/mariadb:/var/lib/mysql
homeassistant: homeassistant:
build: build:
context: ./home-assistant context: ./dockerfiles
dockerfile: home-assistant.Dockerfile dockerfile: home-assistant.Dockerfile
labels: labels:
- traefik.http.routers.homeassistant.rule=Host(`homeassistant.pladijs`) - traefik.http.routers.homeassistant.rule=Host(`homeassistant.pladijs`)
@@ -63,15 +63,6 @@ services:
- TZ=Europe/London - TZ=Europe/London
volumes: volumes:
- ${STORAGE_DIR}/syncthing:/var/syncthing - ${STORAGE_DIR}/syncthing:/var/syncthing
restart: unless-stopped
env_file:
- environment-variables/local.env
- environment-variables/production.env
healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
interval: 1m
timeout: 10s
retries: 3
node-exporter: node-exporter:
image: prom/node-exporter:latest image: prom/node-exporter:latest
container_name: node-exporter container_name: node-exporter