33 lines
853 B
YAML
33 lines
853 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
NPM_VERSION: ${NPM_VERSION:-latest}
|
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
|
restart: unless-stopped
|
|
env_file:
|
|
- path: ./.env
|
|
required: false
|
|
environment:
|
|
PORT: 3000
|
|
HOSTNAME: 0.0.0.0
|
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
|
OPENCLAW_BASE_URL: ${OPENCLAW_BASE_URL:-}
|
|
OPENCLAW_API_KEY: ${OPENCLAW_API_KEY:-}
|
|
OPENCLAW_MODEL: ${OPENCLAW_MODEL:-zeroclaw}
|
|
SEC_USER_AGENT: ${SEC_USER_AGENT:-Fiscal Clone <support@fiscal.local>}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:3000/api/health || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
expose:
|
|
- "3000"
|
|
volumes:
|
|
- app_data:/app/data
|
|
|
|
volumes:
|
|
app_data:
|