-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (39 loc) · 993 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
# Docker compose for an INSECURE development environment OUTSIDE of production
services:
database:
image: "postgres:latest"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=administrator
- POSTGRES_DB=app
ports:
- "5432:5432"
volumes:
- "rdb:/var/lib/postgresql/data"
objectdb:
image: "quay.io/minio/minio:latest"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=administrator
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001" --address ":9000"
volumes:
- "objectdb:/data"
createbuckets:
image: minio/mc
depends_on:
- objectdb
entrypoint: >
/bin/sh -c "
sleep 3;
/usr/bin/mc config host add myminio http://objectdb:9000 admin administrator;
/usr/bin/mc mb myminio/objects;
/usr/bin/mc policy download myminio/objects;
exit 0;
"
restart: no
volumes:
rdb: {}
objectdb: {}