30 lines
743 B
YAML
30 lines
743 B
YAML
services:
|
|
wikideck:
|
|
build:
|
|
context: .
|
|
target: runtime
|
|
ports:
|
|
# Keep the prototype private; listen on all interfaces only inside the container.
|
|
- "127.0.0.1:${WIKIDECK_PORT:-3001}:3001"
|
|
environment:
|
|
PUBLIC_ORIGIN: "${PUBLIC_ORIGIN:-http://127.0.0.1:${WIKIDECK_PORT:-3001}}"
|
|
WIKIDECK_OFFLINE: "${WIKIDECK_OFFLINE:-0}"
|
|
volumes:
|
|
- wikideck-data:/app/data
|
|
init: true
|
|
restart: unless-stopped
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=32m,mode=1777,noexec,nosuid
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
pids_limit: 128
|
|
mem_limit: 512m
|
|
cpus: 1.0
|
|
stop_grace_period: 30s
|
|
|
|
volumes:
|
|
wikideck-data:
|