35 lines
853 B
YAML
35 lines
853 B
YAML
name: xuyouxu-demand-center
|
|||
|
|
services:
|
||
|
|
app:
|
||
|
|
image: xuyouxu-demand-center:20260923T093554Z-feishu-registration
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
args:
|
||
|
|
NEXT_PUBLIC_BASE_PATH: ""
|
||
|
|
init: true
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "127.0.0.1:3000:3000"
|
||
|
|
env_file:
|
||
|
|
- .env
|
||
|
|
environment:
|
||
|
|
NODE_ENV: production
|
||
|
|
HOSTNAME: 0.0.0.0
|
||
|
|
PORT: "3000"
|
||
|
|
DATA_DIR: /app/data
|
||
|
|
LOGIN_CLIENT_IP_HEADER: x-real-ip
|
||
|
|
volumes:
|
||
|
|
- ./data:/app/data
|
||
|
|
mem_limit: 1g
|
||
|
|
cpus: 2
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||
|
|
interval: 20s
|
||
|
|
timeout: 5s
|
||
|
|
start_period: 20s
|
||
|
|
retries: 3
|
||
|
|
logging:
|
||
|
|
driver: json-file
|
||
|
|
options:
|
||
|
|
max-size: "10m"
|
||
|
|
max-file: "3"
|