-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
73 lines (67 loc) · 1.51 KB
/
docker-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.6'
services:
consignment-service:
build: ./consignment-service
image: consignment-service
ports:
- 50051:50051
- 8081:8081
environment:
GRPC_PORT: ":50051"
DISABLE_AUTH: "false"
DB_HOST: "mongodb://datastore:27017"
VESSEL_HOST: "vessel-service:50051"
USER_HOST: "user-service:50051"
depends_on:
- datastore
- vessel-service
- user-service
vessel-service:
build: ./consignment-service
image: vessel-service
ports:
- 50052:50051
environment:
GRPC_PORT: ":50051"
DB_HOST: "mongodb://datastore:27017"
depends_on:
- datastore
datastore:
image: mongo:4.0
ports:
- 27017:27017
user-service:
build: ./user-service
image: user-service
ports:
- 50053:50051
- 8080:8080
environment:
GRPC_PORT: ":50051"
DB_HOST: "database"
DB_NAME: "postgres"
DB_USER: "postgres"
DB_PASSWORD: "postgres"
depends_on:
- database
database:
image: postgres:11-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: "postgres"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
client-cli:
build: ./client-cli
image: client-cli
environment:
USER_HOST: "user-service:50051"
CONSIGMENT_HOST: "consignment-service:50051"
depends_on:
- user-service
- consignment-service