build: dockerfile, compose und readme
- Multi-Stage-Build: Node baut das Frontend, python:3.13-slim liefert aus - Entrypoint setzt Rechte für /data, migriert und startet Uvicorn als UID 1000 - Port nur an die LAN-IP gebunden (192.168.50.123:8085) - Healthcheck gegen /api/health, reduzierte Capabilities, Speicherlimit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
99307acf7d
commit
70af4341c9
4 files changed
+196
No files matched your search
@@ -0,0 +1,30 @@
|
||||
name: lan-clipboard
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
image: lan-clipboard:local
|
||||
container_name: lan-clipboard
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${BIND_IP:?BIND_IP must be set in .env}:${APP_PORT:-8085}:8000"
|
||||
environment:
|
||||
FORWARDED_ALLOW_IPS: ${FORWARDED_ALLOW_IPS:-127.0.0.1}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
TZ: ${TZ:-Europe/Berlin}
|
||||
volumes:
|
||||
- ./data:/data
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- CHOWN
|
||||
- SETUID
|
||||
- SETGID
|
||||
mem_limit: 256m
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
Reference in new issue
Block a user