mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 13:50:31 +00:00
Root docker-compose.yml: removed build directive so quickstart uses pre-built image instead of triggering local Rust compilation. deploy/docker-compose.yml: added Caddy reverse proxy service with TLS termination, replaced ports with expose (no direct 4000 access), added healthcheck and service dependency. Removed stale build context that referenced parent directory.
39 lines
781 B
YAML
39 lines
781 B
YAML
services:
|
|
nora:
|
|
image: ghcr.io/getnora-io/nora:latest
|
|
restart: unless-stopped
|
|
expose:
|
|
- "4000"
|
|
volumes:
|
|
- nora-data:/data
|
|
environment:
|
|
- RUST_LOG=info
|
|
- NORA_HOST=0.0.0.0
|
|
- NORA_PORT=4000
|
|
- NORA_AUTH_ENABLED=false
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4000/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
start_period: 5s
|
|
retries: 3
|
|
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- caddy-data:/data
|
|
- caddy-config:/config
|
|
depends_on:
|
|
nora:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
nora-data:
|
|
caddy-data:
|
|
caddy-config:
|