forked from GDG-on-Campus-KHU/1st-BE-team3-DeployMSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 954 Bytes
/
docker-compose.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
version: '3'
services:
internal:
build:
context: .
dockerfile: deploy/internal/Dockerfile
env_file: .env
environment:
- HOST=internal
- GRPC_GO_LOG_VERBOSITY_LEVEL=99 # gRPC 상세 로그
- GRPC_GO_LOG_SEVERITY_LEVEL=info # gRPC 로그 레벨
networks:
- side-project
server:
build:
context: .
dockerfile: deploy/server/Dockerfile
env_file: .env
environment:
- HOST=server
- GRPC_GO_LOG_VERBOSITY_LEVEL=99
- GRPC_GO_LOG_SEVERITY_LEVEL=info
depends_on:
- internal
networks:
- side-project
client:
build:
context: .
dockerfile: deploy/client/Dockerfile
env_file: .env
environment:
- HOST=server
- PORT=50051
- SERVER_ADDRESS=server:50051 # 명시적으로 server 포트 지정
depends_on:
- server
networks:
- side-project
networks:
side-project:
driver: bridge