-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 989 Bytes
/
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
version: "3.6"
services:
apiquery:
build: "."
command: "api-query-service"
depends_on:
- "postgres"
- "nats"
ports:
- "18080:8080"
environment:
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
POSTGRES_DB: "task"
POSTGRES_USER: "task"
POSTGRES_PASSWORD: "123456"
NATS_ADDRESS: "nats:4222"
command:
build: "."
command: "command-service"
depends_on:
- "postgres"
- "nats"
ports:
- "28080:8080"
environment:
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
POSTGRES_DB: "task"
POSTGRES_USER: "task"
POSTGRES_PASSWORD: "123456"
NATS_ADDRESS: "nats:4222"
postgres:
build: "./postgres"
restart: "always"
environment:
POSTGRES_DB: "task"
POSTGRES_USER: "task"
POSTGRES_PASSWORD: "123456"
ports:
- "5432:5432"
nats:
image: "nats-streaming"
restart: "always"
ports:
- "4222:4222"