appstore-1panel/apps/node/14.21.3/docker-compose.yml
2023-10-06 21:25:35 +08:00

24 lines
541 B
YAML

version: '3'
services:
node:
image: node:${NODE_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${NODE_APP_PORT}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:${NODE_APP_PORT} || exit 1"]
interval: 30s
timeout: 5s
retries: 20
networks:
1panel-network:
external: true