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:
@@ -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:
|
||||
Reference in New Issue
Block a user