-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
113 lines (103 loc) · 2.15 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
version: '3.9'
services:
db:
container_name: db
image: joshevan/solomon-postgres
build:
context: backend-api
dockerfile: postgres.Dockerfile
environment:
- POSTGRES_USER=solomon
- POSTGRES_PASSWORD=proverb
- POSTGRES_DB=solomon-db
volumes:
- solomon-postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
elasticsearch:
image: elasticsearch:8.8.0
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- network.host=0.0.0.0
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
# volumes:
# - /path/to/local/data:/root/redis
# - /path/to/local/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_PASSWORD=proverb
- REDIS_PORT=6379
nsqlookupd:
image: nsqio/nsq
command: /nsqlookupd
ports:
- "4160"
- "4161"
nsqd:
image: nsqio/nsq
command: /nsqd --lookupd-tcp-address=nsqlookupd:4160
depends_on:
- nsqlookupd
ports:
- "4150"
- "4151"
nsqadmin:
image: nsqio/nsq
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161
depends_on:
- nsqlookupd
ports:
- "4171:4171"
app:
container_name: app
image: joshevan/solomon-backend
build:
context: backend-api
dockerfile: Dockerfile
depends_on:
- db
- redis
ports:
- "9099:9099"
links:
- db
restart: always
app-consumer:
container_name: app-consumer
build:
context: backend-api
dockerfile: bus.Dockerfile
depends_on:
- db
- elasticsearch
links:
- db
- elasticsearch
restart: always
cerebro:
platform: linux/amd64
image: lmenezes/cerebro:latest
ports:
- "9000:9000"
depends_on:
- elasticsearch
# frontend:
# container_name: frontend
# image: joshevan/solomon-frontend
# build:
# context: frontend
# dockerfile: frontend.Dockerfile
# depends_on:
# - app
# ports:
# - "5001:5001"
volumes:
solomon-postgres:
external: true