-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
40 lines (37 loc) · 1001 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
postgresql:
image: docker.io/bitnami/postgresql:16
ports:
- "5432:5432"
volumes:
- "postgresql_data:/bitnami/postgresql"
environment:
- POSTGRESQL_USERNAME=hyperdrive_user
- POSTGRESQL_PASSWORD=fibotree_password
- POSTGRESQL_DATABASE=publiz
minio:
image: bitnami/minio:latest
environment:
- MINIO_ROOT_USER=minio_access_key
- MINIO_ROOT_PASSWORD=minio_secret_key
ports:
- "9000:9000"
- "9001:9001"
volumes:
- "minio_data:/data"
create_default_minio_bucket:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set fibotree_minio http://minio:9000 minio_access_key minio_secret_key;
/usr/bin/mc mb fibotree_minio/publiz;
/usr/bin/mc policy set public fibotree_minio/publiz;
exit 0;
"
volumes:
postgresql_data: {}
minio_data: {}
# psql -h localhost -U hyperdrive_user -d publiz < timcay.sql