Node server fixed to run
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
db:
|
||||
image: postgres:14
|
||||
env_file: .env
|
||||
ports:
|
||||
- '5433:5433'
|
||||
volumes:
|
||||
- group-project:/var/lib/postgresql/data
|
||||
- ./src/init_data:/docker-entrypoint-initdb.d
|
||||
web:
|
||||
image: node:lts
|
||||
user: 'node'
|
||||
working_dir: /home/node/app
|
||||
env_file: .env
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- '3001:3001'
|
||||
volumes:
|
||||
- ./src:/home/node/app
|
||||
command: 'npm start'
|
||||
volumes:
|
||||
group-project:
|
||||
Reference in New Issue
Block a user