-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
73 lines (67 loc) · 1.64 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
version: "3.4"
services:
database:
image: mongo:latest
container_name: diveni_database
volumes:
- mongo-volume:/data/db
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/diveni --quiet
interval: 60s
timeout: 30s
retries: 3
start_period: 30s
ai:
image: ghcr.io/sybit-education/diveni-ai:latest
container_name: diveni_ai
restart: unless-stopped
env_file:
- ./ai/.env
backend:
image: ghcr.io/sybit-education/diveni-backend:latest
depends_on:
- database
- ai
container_name: diveni_backend
restart: unless-stopped
environment:
- "SPRING_PROFILES_ACTIVE=prod"
env_file:
- ./backend/.env
healthcheck:
test: curl --fail http://backend:9090/actuator/health | grep UP || exit 1
interval: 60s
timeout: 30s
retries: 3
start_period: 30s
frontend:
image: ghcr.io/sybit-education/diveni-frontend:latest
depends_on:
- backend
container_name: diveni_frontend
restart: unless-stopped
healthcheck:
test: curl --fail http://frontend:80 || exit 1
interval: 60s
timeout: 30s
retries: 3
start_period: 30s
proxy:
image: ghcr.io/sybit-education/diveni-proxy:latest
depends_on:
- frontend
- backend
- database
container_name: diveni_proxy
restart: unless-stopped
ports:
- "80:80"
healthcheck:
test: curl --fail http://localhost:80/health | grep UP || exit 1
interval: 60s
timeout: 30s
retries: 3
start_period: 30s
volumes:
mongo-volume: