/
docker-compose.yaml
81 lines (71 loc) · 1.67 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
74
75
76
77
78
79
80
81
# version: '3.5'
# services:
# consignment:
# restart: always
# build: ./aetheryte-service-consignment
# depends_on:
# - datastore
# - vessel
# ports:
# - "50051:50051"
# environment:
# MICRO_SERVER_ADDRESS: "50051"
# DB_HOST: "mongodv://datastore:27017"
# vessel:
# restart: always
# build: ./aetheryte-service-vessel
# ports:
# - "50052:50051"
# environment:
# MICRO_SERVER_ADDRESS: "50051"
# DB_HOST: "mongodb://datastore:27017"
# cli:
# build: ./aetheryte-cli-consignment
# datastore:
# image: mongo
# container_name: datastore
# environment:
# - MONOGO_DATA_DIR=/data/db
# - MONGO_LOG_DIR=/dev/null
# volumes:
# - ./data/db:/data/db
# ports:
# - 27017
# command: mongod --logpath=/dev/null
version: '3.5'
services:
# Services
consignment:
restart: always
build: ./aetheryte-service-consignment
depends_on:
- datastore
- vessel
ports:
- 50051:50051
environment:
MICRO_SERVER_ADDRESS: ":50051"
DB_HOST: "mongodb://datastore:27017"
vessel:
restart: always
build: ./aetheryte-service-vessel
ports:
- 50052:50051
environment:
MICRO_SERVER_ADDRESS: ":50051"
DB_HOST: "mongodb://datastore:27017"
# Commands
cli:
build: ./aetheryte-cli-consignment
# Database tier
datastore:
image: mongo
container_name: "datastore"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db # ensures data persistence between restarting
ports:
- 27017
command: mongod --logpath=/dev/null