appstore-1panel/apps/node/14.21.3/docker-compose.yml

19 lines
400 B
YAML
Raw Normal View History

2023-10-06 21:25:26 +08:00
services:
node:
image: node:${NODE_VERSION}
2023-10-06 21:25:26 +08:00
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}
2024-07-10 22:19:54 +08:00
restart: on-failure:5
2023-10-06 21:25:26 +08:00
networks:
1panel-network:
external: true