-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
55 lines (49 loc) · 1.11 KB
/
docker-compose-dev.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3"
services:
server:
build:
context: ./server
dockerfile: Dockerfile-dev
env_file:
- ./server/.env
ports:
- '3001:3001'
volumes:
- ./server:/usr/app/server
- /usr/app/server/node_modules
container_name: server
client:
build:
context: ./client
dockerfile: Dockerfile-dev
ports:
- '3000:3000'
volumes:
- ./client:/usr/app/client
- /usr/app/client/node_modules
container_name: client
mongodb_migrate:
image: mongo:4
restart: always
container_name: mongodb_migrate
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: prisma
MONGO_INITDB_DATABASE: fastfood-db
ports:
- '27017:27017'
# Replica Set (required for Prisma Client)
mongo:
build: ./mongodb_replica
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: prisma
MONGO_REPLICA_HOST: mongo
MONGO_REPLICA_PORT: 27018
volumes:
- ./mongo-data:/data/db
ports:
- '27018:27018'
volumes:
mongo-data: