-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·44 lines (42 loc) · 1.13 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
version: "3.5"
services:
nats:
image: nats
ports:
- "8222:8222"
- "4222:4222"
- "4292:4292"
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --http_port 8222 -c /etc/nats-config/server.conf"
networks: [ "nats" ]
volumes:
- /root/nats-config:/etc/nats-config
nats-1:
image: nats
ports:
- "5222:4222"
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222 -c /etc/nats-config/server.conf"
networks: [ "nats" ]
depends_on: [ "nats" ]
volumes:
- /root/nats-config:/etc/nats-config
nats-2:
image: nats
ports:
- "6222:4222"
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222 -c /etc/nats-config/server.conf"
networks: [ "nats" ]
depends_on: [ "nats" ]
volumes:
- /root/nats-config:/etc/nats-config
db:
image: postgres:11-alpine
restart: always
ports:
- "15432:5432"
environment:
POSTGRES_PASSWORD: kova-test
POSTGRES_USER: kova-test
POSTGRES_DB: kova-test
networks:
nats:
name: nats