diff --git a/docker-compose.yml b/docker-compose.yml index cf8765f..8a8a6c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,15 +14,16 @@ services: NODE_ENV: production PORT: "3000" volumes: - - invoice-data:/data - # Bind to loopback only — Caddy on the host terminates TLS and reverse-proxies. - ports: - - "127.0.0.1:3000:3000" + - /docker/linumiq-invoice/data:/data healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/healthz", "||", "exit", "0"] interval: 30s timeout: 5s retries: 3 + networks: + - caddy_net -volumes: - invoice-data: +networks: + caddy_net: + name: caddy_net + external: true