forked from d6o/HomeClip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1017 Bytes
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
services:
homeclip:
build: .
image: homeclip:latest
container_name: homeclip
ports:
- "8080:8080"
environment:
- PORT=8080
- EXPIRATION_DURATION=24h
- CLEANUP_INTERVAL=5m
- MAX_FILE_SIZE=10485760
- MAX_CONTENT_SIZE=1048576
- ENABLE_FILE_UPLOADS=true
- ENABLE_AUTO_CLEANUP=true
- READ_TIMEOUT=15s
- WRITE_TIMEOUT=15s
- IDLE_TIMEOUT=60s
restart: unless-stopped
# Security settings
user: "65532:65532"
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
# Resource limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.1'
memory: 128M
# Health check - removed as distroless doesn't have shell utilities
# Use external monitoring or Kubernetes probes instead
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"