-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
32 lines (30 loc) · 894 Bytes
/
docker-compose.dev.yml
File metadata and controls
32 lines (30 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '3'
services:
web:
build:
target: development
command: npm run docker:dev
ports:
- "${BIND_PORT}:${BIND_PORT}"
# Required to access prsma studio
- "5555:5555"
# Debugging
- "9229:9229"
volumes:
- .:/app
depends_on:
- mongo
mongo:
# We setting up a Single Replica node, to allow transactions from Prisma
image: bitnami/mongodb:latest
restart: unless-stopped
container_name: ${PROJECT_NAME}-mongo
# 2 way bind this port, so we can run npx prisma from host
ports:
- "${MONGODB_PORT_NUMBER}:${MONGODB_PORT_NUMBER}"
environment:
- MONGODB_ROOT_PASSWORD=${MONGODB_ROOT_PASSWORD}
- MONGODB_ROOT_USER=${MONGODB_ROOT_USER}
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_REPLICA_SET_KEY=${MONGODB_REPLICA_SET_KEY}
- MONGODB_PORT_NUMBER=${MONGODB_PORT_NUMBER}