STEP 0: CLONE REPO git clone https://github.com/SaumilBisht/Excali cd Paytm-TurboRepo
STEP 1: CREATE NETWORK -> docker network create quickNetwork
STEP 2: RUN POSTGRES -> docker run -d --name my_postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres
STEP 3: BUILD IMAGES
-> docker build -t excali-fe -f docker/Dockerfile.fe . -> docker build -t excali-be -f docker/Dockerfile.be . -> docker build -t excali-ws -f docker/Dockerfile.ws .
STEP 4: RUN EACH CONTAINER
- fe:
- docker run -d \
--name fe-qs
--network quickNetwork
-e DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres
-p 3000:3000
excali-fe
You also have to migrate the database. docker exec -it frontend sh cd packages/db npx prisma migrate dev --name init exit
-
be: - docker run -d --name be-qs --network quickNetwork -e DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres -p 3001:3001 excali-be
-
ws: - docker run -d --name ws-qs --network quickNetwork -e DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres -p 8080:8080 excali-ws
-
CLONE REPO git clone https://github.com/SaumilBisht/Excali cd Excali
-
Build and start all services: ->docker compose up -d --build
-
MIGRATE DB -> docker ps
-> docker exec -it excali-fe-qs sh (name of image) -> cd packages/db -> npx prisma migrate dev --name init -> exit
IF, Stop the app: docker compose down docker compose down --volumes --remove-orphans