services: camerasave: build: . container_name: camerasave restart: unless-stopped volumes: - ./videospeicher:/app/videospeicher env_file: - .env environment: # Umgebungsvariablen werden direkt aus .env Datei geladen - IMAP_SERVER=${IMAP_SERVER} - IMAP_PORT=${IMAP_PORT} - EMAIL_USER=${EMAIL_USER} - EMAIL_PASS=${EMAIL_PASS} - SAVE_DIR=${SAVE_DIR} # 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"