-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 984 Bytes
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
---
version: "2"
services:
postgres:
image: bitnami/postgresql:latest
restart: always
hostname: postgres
container_name: postgres
environment:
- POSTGRESQL_USERNAME=postgres
- POSTGRESQL_PASSWORD=postgres
- POSTGRESQL_DATABASE=postgres
- POSTGRESQL_WAL_LEVEL=logical
ports:
- "5432:5432"
minio:
image: minio/minio:latest
hostname: minio
container_name: minio
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data-minio:/data
# Creates the default bucket on first startup
minio-init:
image: minio/mc:latest
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 2;
mc alias set local http://minio:9000 minioadmin minioadmin;
mc mb --ignore-existing local/hoodik;
echo 'Bucket ready.';
"