Files
ScoreSpot/docker-compose.yaml

38 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-12 01:10:59 -06:00
version: '3.9'
############################################################
# To Give the container a project related name run: #
# #
# docker-compose -p final-project up #
# #
# ⚠️ Make sure current directory is: /ProjectSourceCode ⚠️ #
############################################################
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:
- group-project:/var/lib/postgresql/data
- ./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-10 21:53:51 -06:00
group-project: