-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.19 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
services:
database:
image: "postgres:16-alpine"
ports:
- 5413:5432
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
user: 1000:1000
volumes:
- appdata-db:/var/lib/postgresql/data/
# health check postgres ready
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 2s
timeout: 5s
retries: 15
redis:
image: redis:alpine
ports:
- "6399:6379"
minio:
image: "minio/minio"
ports:
- "9022:9000"
- "9023:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- appdata-minio:/data
command: server --console-address ":9001" /data
# redis:
# image: "redis:alpine"
# ports:
# - "6339:6379"
volumes:
appdata-db:
driver: local
driver_opts:
type: none
o: bind
device: ./appdata/db-data
appdata-minio:
driver: local
driver_opts:
type: none
o: bind
device: ./appdata/minio-data