32 lines
843 B
YAML
32 lines
843 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:
|
|
WIKIDECK_NETWORK: testnet
|
|
PUBLIC_ORIGIN: "${PUBLIC_ORIGIN:-http://127.0.0.1:${WIKIDECK_PORT:-3001}}"
|
|
WIKIDECK_PEERS: "${WIKIDECK_PEERS:-}"
|
|
WIKIDECK_ALLOW_PRIVATE_PEERS: "${WIKIDECK_ALLOW_PRIVATE_PEERS:-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: 1g
|
|
cpus: 1.0
|
|
stop_grace_period: 30s
|
|
|
|
volumes:
|
|
wikideck-data:
|