-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
199 lines (178 loc) · 4.97 KB
/
compose.dev.yml
File metadata and controls
199 lines (178 loc) · 4.97 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
195
196
197
198
199
services:
edge-proxy:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
- ./L1-edge/nginx.dev.conf:/etc/nginx/nginx.conf:ro #nginx config
depends_on:
- storemate-frontend
- authentification-frontend
- mainpage-frontend
- timemate-frontend
networks: [timemate, mainpage, storemate, authentification]
storemate-backend:
build:
context: ./StoreMate/backend
dockerfile: Dockerfile
expose: ["8001"]
restart: unless-stopped
networks:
- storemate
- authentification
env_file:
- ./environments/storemate.env
depends_on:
storemate-db:
condition: service_healthy
storemate-frontend:
build:
context: ./StoreMate/frontend/
dockerfile: Dockerfile
env_file: ./environments/storemate.env
volumes:
- ./StoreMate/frontend/webserver/nginx.conf:/etc/nginx/nginx.conf
ports: ["8002:8002"]
restart: unless-stopped
networks: [storemate]
depends_on: [storemate-backend]
storemate-db:
image: postgres:16-alpine
env_file:
- ./environments/storemate.env
volumes:
- storemate-data:/var/lib/postgresql/data
expose: ["8003"]
command: -p 8003 # Postgres hört jetzt intern auf 8103
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB} -h 127.0.0.1 -p 8003 || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks: [ storemate ]
timemate-backend:
build:
context: ./TimeMate/backend
dockerfile: Dockerfile
expose: ["8301"]
restart: unless-stopped
networks:
- timemate
- authentification
env_file:
- ./environments/timemate.env
depends_on:
timemate-db:
condition: service_healthy
timemate-frontend:
build:
context: ./TimeMate/frontend/
dockerfile: Dockerfile
env_file: ./environments/storemate.env
volumes:
- ./TimeMate/frontend/webserver/nginx.conf:/etc/nginx/nginx.conf
ports: ["8302:8302"]
restart: unless-stopped
networks: [timemate]
depends_on: [timemate-backend]
timemate-db:
image: postgres:16-alpine
env_file:
- ./environments/timemate.env
volumes:
- timemate-data:/var/lib/postgresql/data
expose: ["8303"]
command: -p 8003 # Postgres hört jetzt intern auf 8103
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB} -h 127.0.0.1 -p 8303 || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks: [ timemate ]
authentification-backend:
build:
context: ./Authentification/backend/
dockerfile: Dockerfile
ports: ["8101:8101"]
env_file:
- ./environments/authentification.env
restart: unless-stopped
networks: [authentification, storemate]
depends_on:
authentification-db:
condition: service_healthy
authentification-frontend:
build:
context: ./Authentification/frontend/
dockerfile: Dockerfile
env_file: ./environments/authentification.env
volumes:
- ./Authentification/frontend/webserver/nginx.conf:/etc/nginx/nginx.conf
- ./Authentification/frontend:/var/www/html:ro
expose: ["8102"]
restart: unless-stopped
networks: [authentification]
depends_on: [authentification-php, authentification-backend]
authentification-db:
image: postgres:16-alpine
env_file:
- ./environments/auth_db.env
volumes:
- auth-data:/var/lib/postgresql/data
command: -p 8103 # Postgres hört jetzt intern auf 8103
expose: ["8103"]
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB} -h 127.0.0.1 -p 8103 || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks: [ authentification ]
authentification-php:
image: php:8.3-fpm-alpine
volumes:
- ./Authentification/frontend:/var/www/html # dein PHP Code
- ./Authentification/php/zz-pool.conf:/usr/local/etc/php-fpm.d/zz-pool.conf:ro
networks: [authentification]
expose: ["8104"]
mainpage-frontend:
image: nginx:alpine
env_file:
- environments/homepage.env
restart: unless-stopped
volumes:
- ./HomePage/frontend/webserver/nginx.conf:/etc/nginx/nginx.conf:ro
- ./HomePage/frontend:/usr/share/nginx/html:ro
expose: ["8202"]
networks: [mainpage]
volumes:
storemate-data:
driver: local
driver_opts:
type: none
device: ./StoreMate/database
o: bind
timemate-data:
driver: local
driver_opts:
type: none
device: ./TimeMate/database
o: bind
auth-data:
driver: local
driver_opts:
type: none
device: ./Authentification/database
o: bind
networks:
mainpage:
authentification:
storemate:
timemate: