-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 840 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 840 Bytes
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
# AuditFlow production stack.
# IP-only deploy: docker compose up -d --build (web on :80, HTTP)
# With a domain: docker compose --profile tls up -d (Caddy auto-HTTPS, set AUDITFLOW_DOMAIN)
services:
web:
build: .
restart: unless-stopped
env_file: .env
environment:
NODE_ENV: production
PORT: "3000"
ports:
- "8080:3000" # host:container. Use 80 if free; 8080 when something else owns :80.
expose:
- "3000"
caddy:
image: caddy:2-alpine
profiles: ["tls"]
restart: unless-stopped
depends_on:
- web
environment:
AUDITFLOW_DOMAIN: ${AUDITFLOW_DOMAIN:-localhost}
ports:
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config: