-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1019 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.8"
services:
mongodb:
image: mongo:5.0
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
container_name: mongodb
gateway:
build:
context: ./gateway
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- ./gateway/.env.docker
depends_on:
- auth
- event
container_name: gateway
auth:
build:
context: ./auth
dockerfile: Dockerfile
ports:
- "3001" # 내부용
env_file:
- ./auth/.env.docker
depends_on:
- mongodb
container_name: auth
event:
build:
context: ./event
dockerfile: Dockerfile
ports:
- "3002" # 내부용
env_file:
- ./event/.env.docker
depends_on:
- mongodb
container_name: event
volumes:
mongo_data: