-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 1.19 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
version: "3.9"
services:
# ─── Web UI ───────────────────────────────────────────────────────────────
web:
build: .
container_name: novabak_web
restart: unless-stopped
ports:
- "8443:8000" # HTTPS
- "8001:8000" # Direct access (also HTTPS)
volumes:
# Persistent data: SQLite DB + logs
- novabak_data:/app/data
- /mnt/backups:/mnt/backups
environment:
- DATA_DIR=/app/data
- LOG_FILE=service.log
command: python -u main.py
# ─── Background Worker Daemon ─────────────────────────────────────────────
worker:
build: .
container_name: novabak_worker
restart: unless-stopped
depends_on:
- web
volumes:
# Same data volume — shared DB between web and worker
- novabak_data:/app/data
- /mnt/backups:/mnt/backups
environment:
- DATA_DIR=/app/data
- LOG_FILE=worker.log
command: python -u worker_daemon.py
volumes:
novabak_data:
driver: local