-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (43 loc) · 1.29 KB
/
docker-compose.yaml
File metadata and controls
46 lines (43 loc) · 1.29 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
version: '3.8'
services:
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
container_name: minio_dev
ports:
- "9000:9000" # S3 API
- "9001:9001" # Console
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- rustfs_buildformat:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:9000/minio/health/ready || exit 1"]
interval: 30s
timeout: 10s
retries: 3
postgres:
# Use a specific minor version for stability, e.g., postgres:18.1
# or a specific major like postgres:18, rather than 'latest'
image: postgres:18.1-alpine3.23
container_name: postgres_dev
ports:
- "5432:5432"
environment:
POSTGRES_DB: devdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
# Changed from /var/lib/postgresql/data to /var/lib/postgresql
# This is the new requirement for PostgreSQL 18+
- postgres_data_buildformat:/var/lib/postgresql
- ./docker-init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d devdb"]
interval: 30s
timeout: 10s
retries: 3
volumes:
rustfs_buildformat:
postgres_data_buildformat: