-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (30 loc) · 1.01 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
services:
filamenthub:
container_name: filamenthub
build:
context: .
dockerfile: Dockerfile
image: filamenthub:latest
restart: unless-stopped
# PFLICHT: host-Modus damit der Drucker-Scanner das LAN erreicht.
# Bridge-Modus (Standard) deaktiviert den Scanner vollstaendig!
# Synology DSM: Im GUI nicht moeglich -> via SSH in docker-compose.yml setzen.
network_mode: host
env_file:
- .env
environment:
FILAMENTHUB_DB_PATH: /app/data/filamenthub.db
PYTHONPATH: /app
# Versionsbezeichnungen (optional - überschreibt Dockerfile Defaults)
APP_VERSION: "Stable v1.6.5 · FilamentHub"
DESIGN_VERSION: "Design 1.0"
volumes:
- /mnt/user/appdata/filamenthub/data:/app/data
- /mnt/user/appdata/filamenthub/logs:/app/logs
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://localhost:${PORT:-8081}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
entrypoint: ["./entrypoint.sh"]