Dockerized

This commit is contained in:
rxf
2025-10-02 09:19:32 +02:00
parent 88f80252d6
commit 3fc1b91041
8 changed files with 275 additions and 5 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: '3.8'
services:
camerasave:
build: .
container_name: camerasave
restart: unless-stopped
volumes:
- ./videospeicher:/app/videospeicher
environment:
# Überschreibe hier die E-Mail-Konfiguration wenn nötig
- IMAP_SERVER=secureimap.t-online.de
- IMAP_PORT=993
- EMAIL_USER=dk2ge@t-online.de
- EMAIL_PASS=ETBjw65tf2
# Führe das Skript alle 5 Minuten aus
command: >
sh -c "while true; do
python main.py && echo 'CameraSave ausgeführt um $$(date)' && sleep 300;
done"