Files
deardiary/docker-compose.yml
lotherk 5c8ebc9a03 feat: add Docker setup for documentation site
- Dockerfile.docs for building docs container
- nginx.conf for serving static Starlight site
- docker-compose.yml updated with docs service (--profile docs)
- Updated docs installation/deployment pages
2026-03-27 02:29:27 +00:00

40 lines
925 B
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "5173:80"
environment:
- DATABASE_URL=file:/data/deardiary.db
- MEDIA_DIR=/data/media
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
- PORT=3000
- CORS_ORIGIN=${CORS_ORIGIN:-*}
- DEFAULT_USER_EMAIL=${DEFAULT_USER_EMAIL:-}
- DEFAULT_USER_PASSWORD=${DEFAULT_USER_PASSWORD:-}
volumes:
- deardiary_data:/data
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
docs:
build:
context: .
dockerfile: Dockerfile.docs
ports:
- "4000:80"
restart: unless-stopped
profiles:
- docs
volumes:
deardiary_data: