-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
60 lines (58 loc) · 1.47 KB
/
compose.yaml
File metadata and controls
60 lines (58 loc) · 1.47 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: storage-api-sample
services:
minio:
build:
context: .docker/minio/minio
dockerfile: Dockerfile
platform: linux/amd64
container_name: "minio.storage-api-sample.dev"
environment:
TZ: Asia/Tokyo
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
ports:
- mode: ingress
target: 9000
published: 9000
protocol: tcp
- mode: ingress
target: 9001
published: 9001
protocol: tcp
privileged: true
restart: always
tty: true
volumes:
- type: bind
source: .minio/data
target: /export
bind:
create_host_path: true
- type: bind
source: .minio/config
target: /root/.minio
bind:
create_host_path: true
command: server --console-address ":9001" /export
createbuckets:
build:
context: .docker/minio/createbuckets
dockerfile: Dockerfile
platform: linux/amd64
container_name: "minio-mc.storage-api-sample.dev"
environment:
TZ: Asia/Tokyo
privileged: true
restart: always
tty: true
depends_on:
minio:
condition: service_started
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add local-bucket http://minio:9000 admin password;
/usr/bin/mc rm -r --force local-bucket/sample-storage;
/usr/bin/mc mb local-bucket/sample-storage;
/usr/bin/mc policy set public local-bucket/sample-storage;
exit 0;
"