Files
ScoreSpot/docker-compose.yaml

30 lines
693 B
YAML
Raw Normal View History

2024-03-12 01:10:59 -06:00
version: '3.9'
2024-03-12 01:10:59 -06:00
services:
db:
container_name: postgres-db
2024-03-12 01:10:59 -06:00
image: postgres:14
env_file: .env
ports:
- '5432:5432'
2024-03-12 01:10:59 -06:00
volumes:
2024-04-30 22:12:59 -06:00
- users-database:/var/lib/postgresql/data
- ./public/init_data:/docker-entrypoint-initdb.d
2024-03-12 01:10:59 -06:00
web:
container_name: node-web-interface
2024-03-12 01:10:59 -06:00
image: node:lts
user: 'node'
working_dir: /home/node/app
env_file: .env
environment:
- NODE_ENV=development
depends_on:
- db
ports:
- '3000:3000'
2024-03-12 01:10:59 -06:00
volumes:
2024-04-30 21:19:35 -06:00
- .:/home/node/app # Mount Client directory
- ./node_modules:/home/node/app/node_modules # Mount node_modules directory
command: 'npm run start'
2024-03-12 01:10:59 -06:00
volumes:
2024-04-30 22:12:59 -06:00
users-database: