This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
122 lines (112 loc) · 2.94 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
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
114
115
116
117
118
119
120
121
122
version: "3.9"
services:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
- "15672:15672"
restart: always
networks:
- ovb-demos-ecommerce
- ovb-demos-ecommerce-synchronizer
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 1234
restart: always
networks:
- ovb-demos-ecommerce
postgres-synchronizer:
image: postgres
container_name: postgres-synchronizer
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 1234
volumes:
- ${PWD}/workerDatabaseVolume.sql:/docker-entrypoint-initdb.d/workerDatabaseVolume.sql
restart: always
networks:
- ovb-demos-ecommerce-synchronizer
pgadmin:
image: dpage/pgadmin4
user: root
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: "otavio@otavio.com"
PGADMIN_DEFAULT_PASSWORD: "1234"
ports:
- "8080:80"
restart: always
links:
- postgres
depends_on:
- postgres
networks:
- ovb-demos-ecommerce
pgadmin-synchronizer:
image: dpage/pgadmin4
user: root
container_name: pgadmin-synchronizer
environment:
PGADMIN_DEFAULT_EMAIL: "otavio@otavio.com"
PGADMIN_DEFAULT_PASSWORD: "1234"
ports:
- "8081:80"
restart: always
links:
- postgres-synchronizer
depends_on:
- postgres-synchronizer
networks:
- ovb-demos-ecommerce-synchronizer
account-microsservice-webgprc:
container_name: "account-microsservice-webgprc"
build:
context: .
dockerfile: accountWebGrpc.Dockerfile
volumes:
- "${PWD}/src/account/OVB.Demos.Ecommerce.Microsservices.AccountManagement.WebGrpc/volumes.json:/app/appsettings.json"
ports:
- 5200:5200
networks:
- ovb-demos-ecommerce
depends_on:
- rabbitmq
- postgres
account-microsservice-worker:
container_name: "account-microsservice-worker"
build:
context: .
dockerfile: accountWorker.Dockerfile
volumes:
- "${PWD}/src/account/OVB.Demos.Ecommerce.Microsservices.AccountManagement.Synchronizer.Worker/volumes.json:/app/appsettings.json"
networks:
- ovb-demos-ecommerce-synchronizer
restart: always
depends_on:
- postgres-synchronizer
- account-microsservice-webgprc
apigateway:
container_name: "apigateway"
build:
context: .
dockerfile: apigateway.Dockerfile
volumes:
- "${PWD}/src/apigateway/OVB.Demos.Ecommerce.Microsservices.ApiGateway.WebApi/volumes.json:/app/appsettings.json"
ports:
- 8090:8090
networks:
- ovb-demos-ecommerce
depends_on:
- account-microsservice-worker
networks:
ovb-demos-ecommerce:
driver: bridge
ovb-demos-ecommerce-synchronizer:
driver: bridge