Add production Docker deployment

Amp-Thread-ID: https://ampcode.com/threads/T-01a02485-5574-707c-bff4-5668d83bee8a
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-08-22 06:54:18 +00:00
co-authored by heaust
parent d95e099fa4
commit eb7508d1c1
11 changed files with 286 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
services:
yawn:
build:
context: .
dockerfile: Dockerfile
image: yawn:local
restart: unless-stopped
init: true
ports:
- "127.0.0.1:5002:5002"
environment:
PORT: "5002"
YAWN_DATABASE: /data/yawn.db
volumes:
- yawn-data:/data
read_only: true
tmpfs:
- /tmp:size=64m
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
stop_grace_period: 15s
volumes:
yawn-data: