-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.03 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
30
31
32
33
34
35
36
37
38
services:
codex:
container_name: codex
image: bocan/codex:latest
restart: unless-stopped
ports:
- "3001:3001"
volumes:
# Persist wiki data outside the container
- ./data:/app/data
environment:
- NODE_ENV=production
- PORT=3001
# Set AUTH_PASSWORD to enable authentication
# - AUTH_PASSWORD=changeme
# Set TRUST_PROXY=true when behind a reverse proxy (nginx, traefik, etc.)
# This makes Express read X-Forwarded-Proto header for secure cookies
# - TRUST_PROXY=true
# - MCP_ENABLED=true
# - MCP_API_KEY=whatevertoo
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/api"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Optional: Add a reverse proxy for production
# services:
# nginx:
# image: nginx:alpine
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# depends_on:
# - codex