Skip to content

Commit

Permalink
feat(docker): define API service in Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 12, 2024
1 parent 9141108 commit 4f3e811
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ services:
POSTGRES_DB: prisma

# The API is better launched using `npm run dev` for hot reloading
# api:
# container_name: graphql-api
# build:
# context: ./backend
# dockerfile: ./Dockerfile
# env_file:
# - ./backend/.env.dev
# ports:
# - 4000:4000
api:
container_name: graphql-api
build: .
env_file:
- ./.env.docker
ports:
- 4000:4000

0 comments on commit 4f3e811

Please sign in to comment.