-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 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
services:
postgres:
image: postgres:16.9
environment:
POSTGRES_USER: test-user
POSTGRES_PASSWORD: test-password
POSTGRES_DB: test-db
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- ./tests/postgres-init-scripts:/docker-entrypoint-initdb.d
minio:
image: quay.io/minio/minio:RELEASE.2024-11-07T00-52-20Z
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_CONSOLE_ADDRESS: ":9001"
command: minio server /data
minio-setup:
image: minio/mc:RELEASE.2025-03-12T17-29-24Z
depends_on:
- minio
entrypoint: >
/bin/sh -c '
mkdir ~/.mc;
echo ''{\"version\": \"10\", \"aliases\": {\"test-minio\": {\"url\": \"http://minio:9000\", \"accessKey\": \"minioadmin\", \"secretKey\": \"minioadmin\", \"api\": \"S3v4\", \"path\": \"auto\"}}}'' > ~/.mc/config.json;
cat ~/.mc/config.json;
/usr/bin/mc rm -r --force test-minio/lhl-test-bucket;
/usr/bin/mc mb test-minio/lhl-test-bucket;
/usr/bin/mc admin user add test-minio test-user test-pass;
/usr/bin/mc admin policy attach test-minio readwrite --user test-user;
exit 0; '
healthcheck:
test: ["CMD", "false"] # Stack is not ready while the minio-setup container is up
interval: 10s
timeout: 5s