Set up for docker compose file

This commit is contained in:
Christopher Cookman 2025-01-25 09:25:37 -07:00
parent f11f3905ca
commit 14435d2345
2 changed files with 17 additions and 1 deletions

15
docker-compose.yml Normal file
View file

@ -0,0 +1,15 @@
services:
nodejs:
image: node:latest
container_name: nodejs_app
network_mode: host
restart: on-failure
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
window: 3600s
volumes:
- .:/app
working_dir: /app
command: sh -c "npm install && npm start"

View file

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "",
"license": "ISC",