-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.portainer.yml
More file actions
78 lines (75 loc) · 2.51 KB
/
Copy pathdocker-compose.portainer.yml
File metadata and controls
78 lines (75 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# BackupGenie - Portainer Stack mit pre-built Images (kein Build nötig)
# Nutzt fertige Images von GitHub Container Registry
#
# Verzeichnisstruktur auf der NAS:
# /volume1/docker/backupgenie/
# ├── config/sources.json
# ├── data/
# ├── logs/
# └── backup/
services:
backend:
image: ghcr.io/hehljo/backupgenie-backend:latest
container_name: backupgenie-backend
restart: unless-stopped
ports:
- "${API_PORT:-5050}:5000"
environment:
- FLASK_ENV=${FLASK_ENV:-production}
- SECRET_KEY=${SECRET_KEY}
- DEBUG=${DEBUG:-false}
- DATABASE_URL=sqlite:////data/backupgenie.db
- BACKUP_BASE_PATH=/mnt/backup
- MAX_PARALLEL_TASKS=${MAX_PARALLEL_TASKS:-auto}
- LOG_RETENTION_DAYS=${LOG_RETENTION_DAYS:-30}
- SOURCES_CONFIG_PATH=/app/config/sources.json
- RCLONE_CONFIG_PATH=/app/config/rclone.conf
- NOTIFICATION_CONFIG_PATH=/app/config/notifications.json
- PLATFORM_PROFILE=${PLATFORM_PROFILE:-auto}
# Notifications (non-secret config)
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-}
- SMTP_FROM=${SMTP_FROM:-}
- NTFY_SERVER_URL=${NTFY_SERVER_URL:-https://ntfy.sh}
- NTFY_TOPIC=${NTFY_TOPIC:-}
# All credentials (tokens, passwords, API keys) are managed
# via the Web UI: Settings → Credentials (encrypted in DB)
volumes:
- ${CONFIG_PATH:-/volume1/docker/backupgenie/config}:/app/config
- ${DATA_PATH:-/volume1/docker/backupgenie/data}:/data
- ${BACKUP_BASE_PATH:-/volume1/docker/backupgenie/backup}:/mnt/backup
- ${LOGS_PATH:-/volume1/docker/backupgenie/logs}:/var/log/backupgenie
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- backupgenie
cap_add:
- DAC_READ_SEARCH
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
image: ghcr.io/hehljo/backupgenie-frontend:latest
container_name: backupgenie-frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-3080}:3000"
environment:
- VITE_API_URL=http://backend:5000
depends_on:
backend:
condition: service_healthy
networks:
- backupgenie
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
networks:
backupgenie:
driver: bridge