-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (92 loc) · 2.24 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
version: "3.7"
volumes:
postgres:
mongo:
services:
postgres:
image: bitnami/postgresql:14.1.0-debian-10-r31
restart: always
ports:
- "5432:5432"
volumes:
- postgres:/bitnami/postgresql
environment:
- POSTGRESQL_USER=postgres
- POSTGRESQL_PASSWORD=postgres
- POSTGRESQL_DATABASE=postgres
mongo:
image: bitnami/mongodb:4.4.14-debian-10-r33
restart: always
ports:
- "27017:27017"
volumes:
- mongo:/bitnami/mongodb
environment:
- MONGODB_ROOT_PASSWORD=root
redis:
image: bitnami/redis:7.0.9-debian-11-r5
restart: always
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
polystore-inventory:
image: ascoz/polystore-inventory:latest
depends_on:
- postgres
- rabbitmq
environment:
- PORT=8080
- EUREKA_ENABLED=false
- DATABASE_URL=jdbc:postgresql://postgres:5432/postgres
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
polystore-order:
image: ascoz/polystore-order:latest
depends_on:
- postgres
- rabbitmq
environment:
- PORT=8080
- EUREKA_ENABLED=false
- DATABASE_URL=jdbc:postgresql://postgres:5432/postgres
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
polystore-catalog:
image: ascoz/polystore-catalog:latest
depends_on:
- mongo
- rabbitmq
environment:
- PORT=8080
- EUREKA_ENABLED=false
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_DATABASE=admin
- MONGODB_USERNAME=root
- MONGODB_PASSWORD=root
polystore-cart:
image: ascoz/polystore-cart:latest
depends_on:
- redis
- rabbitmq
environment:
- PORT=8080
- EUREKA_ENABLED=false
- REDIS_HOST=redis
- REDIS_PORT=6379
polystore-gateway:
image: ascoz/polystore-gateway:latest
ports:
- "8080:8080"
environment:
- EUREKA_ENABLED=false
- INVENTORY_URI=http://polystore-inventory:8080
- CATALOG_URI=http://polystore-catalog:8080
- ORDER_URI=http://polystore-order:8080
- CART_URI=http://polystore-cart:8080