fix(deploy): wire Caddy into production compose, remove build from quickstart

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.
This commit is contained in:
2026-04-02 11:47:15 +00:00
parent 970374b4e2
commit f09cceb326
2 changed files with 24 additions and 6 deletions

View File

@@ -1,12 +1,9 @@
services:
nora:
image: ghcr.io/getnora-io/nora:latest
build:
context: ..
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "4000:4000"
expose:
- "4000"
volumes:
- nora-data:/data
environment:
@@ -14,6 +11,28 @@ services:
- 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:

View File

@@ -1,6 +1,5 @@
services:
nora:
build: .
image: ghcr.io/getnora-io/nora:latest
ports:
- "4000:4000"