Initial commit
This commit is contained in:
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
||||
services:
|
||||
nodejs:
|
||||
image: node:22-alpine
|
||||
working_dir: /usr/project/app
|
||||
restart: unless-stopped
|
||||
command: >
|
||||
sh -c 'echo "Running setup...";
|
||||
npm install;
|
||||
echo "Starting the node...";
|
||||
npm start'
|
||||
volumes:
|
||||
- ./app/:/usr/project/app/:rw
|
||||
- ./.env:/usr/project/.env:ro
|
||||
- ./example.env:/usr/project/example.env:ro
|
||||
- ./data/:/usr/project/data/:rw
|
||||
ports:
|
||||
- "${PORT}:${PORT}"
|
||||
Reference in New Issue
Block a user