-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Run AdmiralBBS in a container: ADMIRALBBS_KEY=... docker compose up --build
# State (SQLite DB, audit JSONL, SSH host key, KDF salt) persists in the named
# volume. The master key is injected from the host env and never written to disk.
services:
admiralbbs:
build: .
image: admiralbbs:latest
container_name: admiralbbs
restart: unless-stopped
# Encryption is mandatory — fail fast if the key isn't provided.
environment:
ADMIRALBBS_KEY: ${ADMIRALBBS_KEY:?set ADMIRALBBS_KEY in the host env (never commit it)}
ports:
- "2323:2323" # telnet (apply-only)
- "2222:2222" # ssh (members)
volumes:
- bbs-data:/home/bbs/data # the only writable persistent state
# --- hardening (RISKS SEC-10) ---
read_only: true # immutable root filesystem
tmpfs:
- /tmp # door-game jail dirs (ephemeral, noexec-able)
cap_drop:
- ALL # drop every Linux capability
security_opt:
- no-new-privileges:true # a door can never gain privileges
# runs as the non-root 'bbs' user (set in the Dockerfile)
volumes:
bbs-data: