-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
46 lines (46 loc) · 853 Bytes
/
compose.yaml
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
version: '3.8'
services:
main-app:
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
- "secondary-app"
- "grpc-app"
ports:
- "8080:8080"
expose:
- 8080
environment:
HOST: 0.0.0.0
SECONDARY_HOST: "secondary-app"
GRPC_TARGET: "grpc-app"
env_file:
- .env
restart: on-failure
secondary-app:
build:
context: ./
dockerfile: ./secondary/Dockerfile
ports:
- "8082:8082"
expose:
- 8082
environment:
HOST: 0.0.0.0
env_file:
- ./secondary/.env
restart: on-failure
grpc-app:
build:
context: ./
dockerfile: ./grpc-server/Dockerfile
ports:
- "7070:7070"
expose:
- 7070
environment:
HOST: 0.0.0.0
env_file:
- ./grpc-server/.env
restart: on-failure