-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
78 lines (73 loc) · 1.49 KB
/
compose.dev.yaml
File metadata and controls
78 lines (73 loc) · 1.49 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
x-minio-common: &minio-common
image: quay.io/minio/minio:latest
command: server --console-address ":9090" /minio1/mnt/data
ports:
- "9000:9000"
- "9090:9090"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
services:
postgres:
image: postgres:17.5-bookworm
restart: unless-stopped
env_file:
- .env
user: postgres
volumes:
- pgdata:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
ports:
- 127.0.0.1:5432:5432
backend:
build:
context: backend/
dockerfile: dev.Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
ml:
condition: service_started
env_file:
- backend/.env
ports:
- 8080:8080
website:
build:
context: website/
dockerfile: dev.Dockerfile
restart: unless-stopped
depends_on:
- backend
ports:
- 3000:3000
ml:
build:
context: ml/
dockerfile: dev.Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- ml/.env
ports:
- 50051:50051
minio:
<<: *minio-common
hostname: minio
volumes:
- miniodata: /mnt/data
volumes:
pgdata:
miniodata: