-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
194 lines (181 loc) · 5.08 KB
/
docker-compose-dev.yaml
File metadata and controls
194 lines (181 loc) · 5.08 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
version: "3.8"
services:
nginx:
build: ./General-Context/nginx
restart: always
volumes:
- ./General-Context/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
container_name: nginx
ports:
- 80:80
- 8881:80
expose:
- "80"
- "8881"
environment:
NGINX_PORT: 80
networks:
- main_net
depends_on:
- product_gateway
- order_gateway
- auth_gateway
- email_gateway
- pricing_gateway
- pricing_postgres
pricing_gateway:
extends:
file: Pricing-Context/docker-compose.yml
service: pricing_gateway
pricing_postgres:
extends:
file: Pricing-Context/docker-compose.yml
service: pricing_postgres
auth_gateway:
container_name: auth_gateway
init: true
restart: unless-stopped
build:
context: ./Authentication-Context/auth_gateway
dockerfile: Dockerfile-slim-bullseye-python312
command: tail -F anything
env_file: ./Authentication-Context/auth_gateway/environment_variables/local_dev_auth_gateway.env
volumes:
- ./Authentication-Context/auth_gateway:/app
networks:
- main_net
depends_on:
- auth_postgres
product_gateway:
container_name: product_gateway
init: true
restart: unless-stopped
build:
context: ./Product-Context/product_gateway
dockerfile: Dockerfile-slim-bullseye-python312
command: tail -F anything
env_file: ./Product-Context/product_gateway/environment_variables/local_dev_product_gateway.env
volumes:
- ./Product-Context/product_gateway:/app
networks:
- main_net
depends_on:
- product_postgres
order_gateway:
container_name: order_gateway
init: true
restart: unless-stopped
build:
context: ./Orders-Context/order_gateway
dockerfile: Dockerfile-slim-bullseye-python312
command: tail -F anything
env_file: ./Orders-Context/order_gateway/environment_variables/local_dev_order_gateway.env
volumes:
- ./Orders-Context/order_gateway:/app
networks:
- main_net
depends_on:
- order_postgres
email_gateway:
container_name: email_gateway
init: true
restart: unless-stopped
build:
context: ./Email-Context/email_gateway
dockerfile: Dockerfile-slim-bullseye-python311
command: tail -F anything
env_file: ./Email-Context/email_gateway/.env
volumes:
- ./Email-Context/email_gateway:/app
networks:
- main_net
#product_getter:
# container_name: product_getter
# init: true
# restart: unless-stopped
# build:
# context: ./Product-Context/product_getter
# dockerfile: Dockerfile-slim-bullseye-python312
# command: tail -F anything
# env_file: ./Product-Context/product_getter/environment_variables/local_dev_product_getter.env
# volumes:
# - ./Product-Context/product_getter:/app
# networks:
# - main_net
auth_postgres:
container_name: auth_postgres
image: postgres:14-alpine
ports:
- "5433:5432"
expose:
- "5433"
volumes:
- ~/auth_app/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=Pass!123
- POSTGRES_USER=auth_admin_postgres
- POSTGRES_DB=authentication
networks:
- main_net
product_postgres:
container_name: product_postgres
image: postgres:14-alpine
ports:
- "6433:5432"
expose:
- "6433"
volumes:
- ~/product_app/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=Pass!123
- POSTGRES_USER=product_admin_postgres
- POSTGRES_DB=product
networks:
- main_net
order_postgres:
container_name: order_postgres
image: postgres:14-alpine
ports:
- "6434:5432"
expose:
- "6434"
volumes:
- ~/order_app/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=Pass!123
- POSTGRES_USER=order_admin_postgres
- POSTGRES_DB=order
networks:
- main_net
# new_product_postgres:
# container_name: new_product_postgres
# image: postgres:14-alpine
# ports:
# - "6435:5432"
# expose:
# - "6435"
# volumes:
# - ~/new_product_app/postgres:/var/lib/postgresql/data
# environment:
# - POSTGRES_PASSWORD=Pass!123
# - POSTGRES_USER=product_admin_postgres
# - POSTGRES_DB=new_product
# networks:
# - main_net
# sqlalchemy_db_setup_test:
# container_name: sqlalchemy_db_setup_test
# init: true
# restart: unless-stopped
# build:
# context: ./Database-Structures
# dockerfile: Dockerfile-slim-bullseye-python312
# command: tail -F anything
# env_file: ./Database-Structures/environment_variables/local.env
# volumes:
# - ./Database-Structures:/app
# networks:
# - main_net
networks:
main_net:
name: main_net
driver: bridge