-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
123 lines (110 loc) · 2.18 KB
/
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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '3.8'
services:
gateway:
image: gateway:dev
ports:
- 3000:3000
command: npm run start:dev
networks:
- "RECNetwork"
auth:
image: auth:2.0
command: npm run start:dev
depends_on:
- auth-db
networks:
- "RECNetwork"
meters:
image: meters:2.1
command: npm run start:dev
volumes:
- logs:/usr/src/log
secrets:
- source: meters
target: .env
networks:
- "RECNetwork"
depends_on:
- influxdb
ports:
- '5049:5049'
sensors:
image: sensors:2.0
command: npm run start:dev
volumes:
- logs:/usr/src/log
secrets:
- source: sensors
target: .env
networks:
- "RECNetwork"
depends_on:
- influxdb
market:
image: market
networks:
- "RECNetwork"
ports:
- '50050:50050'
- '50051:50051'
secrets:
- source: MarketCrt
target: market_crt.pem
- source: MarketKey
target: market_key.pem
influxdb:
image: influxdb:alpine
ports:
- '8086:8086'
volumes:
- /Influx/data:/var/lib/influxdb2
- /Influx/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=adminadmin
- DOCKER_INFLUXDB_INIT_ORG=RECNetwork
- DOCKER_INFLUXDB_INIT_BUCKET=meter
networks:
- "RECNetwork"
transactions:
image: transactions:dev
command: npm run start:dev
volumes:
- logs:/usr/src/log
- sqlite3:/databases/
networks:
- "RECNetwork"
ports:
- '5055:5055'
secrets:
- source: MarketCrt
target: market_crt.pem
auth-db:
image: postgres:alpine
environment:
POSTGRES_USER: RECNetwork
POSTGRES_PASSWORD: RECNetwork
POSTGRES_DB: auth
PGDATA: /data/postgres
volumes:
- auth-db:/data/postgres
networks:
- "RECNetwork"
secrets:
meters:
external: true
sensors:
external: true
MarketCrt:
external: true
MarketKey:
external: true
volumes:
auth-db:
logs:
sqlite3:
networks:
RECNetwork:
name: "RECNetwork"
external: true