Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix: local docker compose development (#124)
Browse files Browse the repository at this point in the history
* fix: local docker compose development

* chore: update Dockerfile.dev for local development
  • Loading branch information
Pradumnasaraf authored Aug 12, 2024
1 parent bf61dbd commit a4be36c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG NODE_VERSION=22
FROM node:${NODE_VERSION} AS builder
WORKDIR /usr/src/app

COPY . .

RUN npm ci

EXPOSE 3000

CMD npm run db:dev:migrate && npm run db:dev:seed && npm run dev
2 changes: 2 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ services:
server:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env
environment: # To override the DB URL in the .env file
Expand All @@ -13,6 +14,7 @@ services:
networks:
- creators-registry
container_name: server

db:
image: postgres:16
container_name: db
Expand Down

0 comments on commit a4be36c

Please sign in to comment.