-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (25 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
25 lines (25 loc) · 1.06 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
services:
ambrosia:
image: WillC33/ambrosia:latest
ports:
- "1965:1965" # Gemini port (public)
- "127.0.0.1:9568:9568" # Metrics port (localhost only)
volumes:
# Optional: mount your content (comment out if using built-in sample)
# Because the docker file system is readonly
- ./gemini:/app/gemini:ro # Your .gmi files go here
- ./certs:/certs:ro # Optional: your TLS certs configured in start script if absent
environment:
- HOSTNAME=${HOSTNAME:?HOSTNAME environment variable is required}
- ROOT_DIR=/app/gemini
- METRICS_ENABLED=${METRICS_ENABLED:-false} # Enable telemetry
- METRICS_PORT=${METRICS_PORT:-9568} # Prometheus metrics endpoint
- LOG_LEVEL=${LOG_LEVEL:-info} # info, debug, warn, error
- RATE_LIMIT_REQUESTS=${RATE_LIMIT_REQUESTS:-100}
- RATE_LIMIT_WINDOW_MS=${RATE_LIMIT_WINDOW_MS:-1000}
restart: unless-stopped
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=10M