-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (38 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
46 lines (38 loc) · 1.4 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
version: '1.0'
# Use this version for Unraid with bind mount to appdata
# Before starting, create the data directory:
# mkdir -p /mnt/user/appdata/site-manager/data
services:
site-manager:
build: .
container_name: site-manager
ports:
- "3010:3010" # Admin interface (keep internal/protected)
- "3011:3011" # Public read-only (expose via CF tunnel)
# To change the host port, only change the LEFT side (e.g. "8080:3011")
# Do NOT change PUBLIC_PORT below - it must match the right side of the port mapping
volumes:
# Bind mount - change path to your Unraid appdata location
- /mnt/user/appdata/site-manager/data:/app/data
- /mnt/user/appdata/site-manager/uploads:/app/uploads
environment:
- NODE_ENV=production
- PORT=3010
- PUBLIC_PORT=3011
- DB_PATH=/app/data/site.db
# Hybrid auth (Cloudflare Access + local fallback)
- ADMIN_TRUST_CLOUDFLARE_ACCESS=true
- ADMIN_ALLOWED_EMAILS=you@example.com
- SESSION_SECRET=change-this-to-a-long-random-string
- ADMIN_PASSWORD_HASH=$2a$10$REPLACE_WITH_BCRYPT_HASH
# Uploads
- UPLOAD_MAX_MB=15
- COOKIE_SECURE=true
networks:
- guac-net
# Run as specific user/group if needed (uncomment and adjust)
# user: "99:100" # nobody:users on Unraid
restart: unless-stopped
networks:
guac-net:
external: true