-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 982 Bytes
/
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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: wolk
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- wolk_data:/var/lib/postgresql/data
ports:
- "5432:5432"
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: miniorootuser
MINIO_ROOT_PASSWORD: password
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- minio_data:/data
ports:
- 9000:9000
- 9001:9001
createbuckets:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 miniorootuser password;
/usr/bin/mc mb -p myminio/wolk;
/usr/bin/mc policy download myminio/wolk;
exit 0;
"
volumes:
wolk_data:
minio_data: