forked from uid4oe/grpc-web-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (107 loc) · 2.23 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
version: "3.7"
services:
alva-ui:
container_name: "ui"
image: uid4oe/alva-ui:latest
networks:
- grpc-web-demo-alva-net
ports:
- 3000:80
alva-catalog:
container_name: "catalog"
image: uid4oe/alva-catalog:latest
networks:
- grpc-web-demo-alva-net
ports:
- 55050:55050
command: /main
depends_on:
- postgres
env_file:
- .env
restart: always
alva-catalog-envoy:
container_name: "catalog-envoy"
image: uid4oe/alva-catalog-envoy:latest
networks:
- grpc-web-demo-alva-net
ports:
- "8000:8000"
alva-offer:
container_name: "offer"
image: uid4oe/alva-offer:latest
networks:
- grpc-web-demo-alva-net
ports:
- 55051:55051
command: /main
depends_on:
- mongodb
env_file:
- .env
restart: always
alva-offer-envoy:
container_name: "offer-envoy"
image: uid4oe/alva-offer-envoy:latest
networks:
- grpc-web-demo-alva-net
ports:
- "8001:8001"
alva-order:
container_name: "order"
image: uid4oe/alva-order:latest
networks:
- grpc-web-demo-alva-net
ports:
- 55052:55052
command: /main
depends_on:
- postgres
env_file:
- .env
restart: always
alva-order-envoy:
container_name: "order-envoy"
image: uid4oe/alva-order-envoy:latest
networks:
- grpc-web-demo-alva-net
ports:
- "8002:8002"
mongodb:
container_name: "mongodb"
image: mongo:latest
hostname: mongodb
restart: always
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- mongodb:/data/db
- mongoconfig:/data/configdb
env_file:
- .env
networks:
- grpc-web-demo-alva-net
ports:
- 27017:27017
postgres:
container_name: "postgres"
image: postgres:latest
hostname: postgres
user: postgres
restart: always
volumes:
- postgres:/var/lib/postgresql/data
- ./all.sql:/docker-entrypoint-initdb.d/create_tables.sql
env_file:
- .env
networks:
- grpc-web-demo-alva-net
command: "postgres"
ports:
- "5432:5432"
volumes:
mongodb:
mongoconfig:
postgres:
networks:
grpc-web-demo-alva-net:
external: true