2
0
mirror of https://github.com/acepanel/templates.git synced 2026-02-04 05:07:13 +08:00
Files
templates/new-api/docker-compose.yml
2026-01-23 06:49:40 +08:00

25 lines
617 B
YAML

services:
new-api:
image: calciumion/new-api:v0.10.5
restart: unless-stopped
ports:
- ${NEW_API_PORT_HTTP}:3000
networks:
- acepanel-network
command: --log-dir /app/logs
volumes:
- ./data:/data
- ./logs:/app/logs
environment:
- TZ=${NEW_API_TIME_ZONE}
- ERROR_LOG_ENABLED=true
- MEMORY_CACHE_ENABLED=true
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' || exit 1"]
interval: 30s
timeout: 10s
retries: 3
networks:
acepanel-network:
external: true