2
0
Fork 0

Use env for config instead of flags

pull/6/head
UnicodingUnicorn 2019-02-18 23:44:25 +08:00
parent db9069ccff
commit 60d95ea749
10 changed files with 35 additions and 17 deletions

@ -1 +1 @@
Subproject commit f9b278f18cac8a8991699ab56d3f82f46989cf65
Subproject commit 863d44134a55658f9d18107e9e41782620d506a0

@ -1 +1 @@
Subproject commit 1904525ebff34c17a6b1f4999c541fb3bf343517
Subproject commit d323083f744eedc8bd3487d3177a12abfbd59099

@ -1 +1 @@
Subproject commit 84d9ed7c06d086bdf87e7c153644bf1c9849ac34
Subproject commit 413015945aa5ea985ab3626df147f61299671741

@ -1 +1 @@
Subproject commit f54300aaea265c5076b7fcbed47d4a7fe5b24f19
Subproject commit e82b4b400e2dad5f1e554921375e98446c92a3d4

@ -1 +1 @@
Subproject commit 18f2072747e0d4cc6ab56061717f8573f2db3154
Subproject commit d22df9b05b732c270ceca90d4336a840ac99842e

@ -1 +1 @@
Subproject commit 37508f9456f83c84be5ff5ac8849823ec7b7ef98
Subproject commit 26d72fe8743639812a2cf4052250026e65b345dc

@ -1 +1 @@
Subproject commit f897b74878050613330f2172af486ff4033e4ecd
Subproject commit 140433f7205b28a549ffea1bb756fb91c72db223

@ -1 +1 @@
Subproject commit a5dccb1210fef27395b73eee181295b5de17bd05
Subproject commit d4773c0c5eaff4bd6f63470e82dd787dcb9bb39d

@ -1 +1 @@
Subproject commit 8bcce305788a0058b3b2f7b0ad932d7ab5761285
Subproject commit 0cd88a43928cad1538acee4bc05017122b798cff

View File

@ -32,11 +32,13 @@ services:
restart: unless-stopped
depends_on:
- pg
environment:
- LISTEN=:10200
- POSTGRES=postgresql://root@pg:5432/core?sslmode=disable
ports:
- "10200:10200"
networks:
- pgnet
command: -listen :10200 -postgres postgresql://root@pg:5432/core?sslmode=disable
signal:
build: ./backend-signal
@ -53,19 +55,23 @@ services:
restart: unless-stopped
depends_on:
- redis
environment:
- LISTEN=:10203
- REDIS=redis:6379
ports:
- "10203:10203"
networks:
- redisnet
command: -listen :10203 -redis redis:6379
login:
build: ./backend-login
tty: true
restart: unless-stopped
environment:
- LISTEN=:10204
- SECRET=secret
ports:
- "10204:10204"
command: -listen :10204 -secret secret
# Pipeline
bite:
@ -74,11 +80,13 @@ services:
restart: unless-stopped
depends_on:
- nats
environment:
- LISTEN=:10202
- NATS=nats://nats:4222
ports:
- "10202:10202"
networks:
- natsnet
command: -listen :10202 -nats nats://nats:4222
publish:
build: ./backend-publish
@ -86,11 +94,14 @@ services:
restart: unless-stopped
depends_on:
- nats
environment:
- LISTEN=:10205
- NATS=nats://nats:4222
- SECRET=secret
ports:
- "10205:10205"
networks:
- natsnet
command: -listen :10205 -nats nats://nats:4222 -secret secret
store:
build: ./backend-store
@ -98,9 +109,11 @@ services:
restart: unless-stopped
depends_on:
- nats
environment:
- NATS=nats://nats:4222
- DBPATH=/tmp/badger
networks:
- natsnet
command: -nats nats://nats:4222 -dbpath /tmp/badger
subscribe:
build: ./backend-subscribe
@ -108,11 +121,13 @@ services:
restart: unless-stopped
depends_on:
- nats
environment:
- LISTEN=:10206
- NATS=nats://nats:4222
ports:
- "10206:10206"
networks:
- natsnet
command: -listen :10206 -nats nats://nats:4222
transcription:
build: ./backend-transcription
@ -120,11 +135,14 @@ services:
restart: unless-stopped
depends_on:
- nats
environment:
- LISTEN=:10207
- NATS=nats://nats:4222
- API_KEY=AIzaSyDxSXDefzw9gXCQaVzOCYlRn_vcC9Da9Q0
ports:
- "10207:10207"
networks:
- natsnet
command: -listen :10207 -nats nats://nats:4222 -api-key AIzaSyDxSXDefzw9gXCQaVzOCYlRn_vcC9Da9Q0
networks:
pgnet: