build(v3): use pnpm, docker, docker-compose to orchestrate two services (client, server)

This commit is contained in:
Amruth Pillai
2022-03-07 13:43:34 +01:00
parent 9c1380f401
commit 938e2e8e25
23 changed files with 9355 additions and 11409 deletions

View File

@ -11,5 +11,29 @@ services:
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
- pgdata:/var/lib/postgresql/data
server:
build:
context: .
dockerfile: server/Dockerfile
container_name: server
env_file: .env
environment:
- POSTGRES_HOST=postgres
ports:
- 3100:3100
depends_on:
- postgres
client:
build:
context: .
dockerfile: client/Dockerfile
container_name: client
env_file: .env
ports:
- 3000:3000
depends_on:
- server
volumes:
pgdata: