-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-prod.yaml
More file actions
204 lines (192 loc) · 4.72 KB
/
Copy pathcompose-prod.yaml
File metadata and controls
204 lines (192 loc) · 4.72 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
200
201
202
203
204
version: "3.8"
services:
db:
container_name: db
image: postgres:latest
environment:
POSTGRES_DB: ${EDUTIE_DB_NAME}
POSTGRES_USER: ${EDUTIE_DB_USER}
POSTGRES_PASSWORD: ${EDUTIE_DB_PASSWORD}
POSTGRES_HOST: ${EDUTIE_DB_HOST}
POSTGRES_PORT: ${EDUTIE_DB_PORT}
expose:
- "5432"
networks:
- private
volumes:
- db-data:/var/lib/postgresql/data
db-dashboard:
container_name: db-dashboard
image: dpage/pgadmin4:latest
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
expose:
- "80"
networks:
- private
- public
volumes:
- pgadmin-data:/var/lib/pgadmin
backend-app:
container_name: backend-app
image: edutie/backend-app
env_file:
- .env
build:
context: .
dockerfile: Dockerfile
args:
- MAVEN_REPO=/maven-repo
ports:
- "8081:8081"
volumes:
- maven-repo:/root/.m2/repository
extra_hosts:
- "host.docker.internal:host-gateway"
- "${DOMAIN_HOSTNAME}:host-gateway"
depends_on:
- db
- keycloak
networks:
- private
- public
llm-service:
container_name: llm-service
image: edutie/llm-service
build: ../edutie-llm
command: uvicorn main:app --host 0.0.0.0 --port 80 --reload
volumes:
- ../edutie-llm:/app
ports:
- "9000:80"
env_file:
- .env
networks:
- private
knowledge-map-service:
container_name: knowledge-map-service
build:
context: ../edutie-knowledge-map
dockerfile: Dockerfile
image: edutie/knowledge-map-service
command: uvicorn main:app --host 0.0.0.0 --port 80 --reload
volumes:
- ../edutie-knowledge-map:/app
env_file:
- .env
ports:
- "9001:80"
networks:
- private
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:24.0.0
env_file:
- .env
command:
- start-dev
- --import-realm
ports:
- "8080:8080"
volumes:
- ../edutie-authorization-server/import/:/opt/keycloak/data/import/
- ../edutie-authorization-server/theme/:/opt/keycloak/themes/
extra_hosts:
- "host.docker.internal:host-gateway"
- "${DOMAIN_HOSTNAME}:host-gateway"
healthcheck:
test: [ "CMD-SHELL", '[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck { public static void main(String[] args) throws java.lang.Throwable { System.exit(java.net.HttpURLConnection.HTTP_OK == ((java.net.HttpURLConnection)new java.net.URL(args[0]).openConnection()).getResponseCode() ? 0 : 1); } }" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java http://localhost:8080/auth/health/live' ]
interval: 5s
timeout: 5s
retries: 20
networks:
- private
depends_on:
- db-identity
db-identity:
container_name: db-identity
image: postgres:latest
environment:
POSTGRES_PASSWORD: ${KC_DB_PASSWORD}
POSTGRES_USER: ${KC_DB_USERNAME}
POSTGRES_DB: ${IDENTITY_DB_NAME}
POSTGRES_HOST: ${IDENTITY_DB_HOST}
POSTGRES_PORT: ${IDENTITY_DB_PORT}
expose:
- "5432"
networks:
- private
volumes:
- db-identity-data:/var/lib/postgresql/data
bff:
container_name: bff
image: edutie/bff
env_file:
- .env
build:
context: ../edutie-bff
dockerfile: Dockerfile
ports:
- "7081:7081"
extra_hosts:
- "host.docker.internal:host-gateway"
- "${DOMAIN_HOSTNAME}:host-gateway"
depends_on:
keycloak:
condition: service_healthy
networks:
- public
- private
api-gateway:
container_name: api-gateway
image: edutie/api-gateway
env_file:
- .env
build:
context: ../edutie-api-gateway
dockerfile: Dockerfile
ports:
- "1999:1999"
networks:
- public
- private
frontend-app:
container_name: frontend-app
image: edutie/frontend-app
build:
context: ../edutie-frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
extra_hosts:
- "host.docker.internal:host-gateway"
- "${DOMAIN_HOSTNAME}:host-gateway"
volumes:
- ../edutie-frontend/node_modules:/app/node_modules
- ../edutie-frontend/nginx.conf:/etc/nginx/nginx.conf
networks:
- public
website:
image: node:23.4.0-alpine
user: root
container_name: website
working_dir: /app
volumes:
- ../edutie.nowanauka.pl:/app
command: npm start
expose:
- "8080"
networks:
- public
networks:
private:
driver: bridge
public:
driver: bridge
volumes:
maven-repo:
pgadmin-data:
db-data:
db-identity-data: