-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.6 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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: sortifyr
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
ports:
- "5432:5432"
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: miniominio
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"]
interval: 10s
timeout: 5s
retries: 12
ports:
- "9001:9001"
backend:
build:
dockerfile: Dockerfile.dev
command: sh -c "go mod tidy && air -c .air.toml"
ports:
- 3001:3001
volumes:
- .:/backend
- /backend/ui
- backend_packages:/go/pkg/mod
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
frontend:
build:
context: ui
dockerfile: Dockerfile.dev
ports:
- 3000:3000
volumes:
- ./ui:/frontend
- frontend_packages:/frontend/node_modules
depends_on:
- backend
volumes:
db_data:
redis_data:
minio_data:
backend_packages:
frontend_packages: