-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 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
services:
postgres:
image: postgres:16
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: minio/minio:latest
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_CONSOLE_ADDRESS: ":9001"
command: minio server /data
minio-setup:
image: minio/mc:latest
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until (/usr/bin/mc config host add test-minio http://minio:9000 minioadmin minioadmin) do echo '...waiting...' && sleep 1; done;
/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; "