-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (35 loc) · 940 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
version: '3.8'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${mongodbUsername}
MONGO_INITDB_ROOT_PASSWORD: ${mongodbPassword}
volumes:
- ./private/mongodb/data:/data/db
ports:
- '27017:27017'
minio:
image: minio/minio
restart: always
environment:
MINIO_ROOT_USER: ${minioAccessKey}
MINIO_ROOT_PASSWORD: ${minioSecretKey}
command: 'server /data --console-address ":9001"'
volumes:
- ./private/minio/data:/data
ports:
- '9000:${minioPort}'
- '9001:9001'
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:${minioPort} ${minioAccessKey} ${minioSecretKey};
/usr/bin/mc mb myminio/${minioBucket};
/usr/bin/mc anonymous set download myminio/${minioBucket};
exit 0;
"