-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.minio.yaml
68 lines (63 loc) · 1.58 KB
/
docker-compose.minio.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
minio:
hostname: minio.ny.lon
profiles:
- minio
image: "minio/minio:RELEASE.2023-09-20T22-49-55Z"
environment:
MINIO_ROOT_USER: miniouser
MINIO_ROOT_PASSWORD: miniopass
ports:
- 9000:9000
- 9001:9001
command:
- minio
- server
- -console-address
- :9001
- /data
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9001"]
interval: 10s
timeout: 10s
retries: 5
volumes:
- ${PWD}/data:/data
networks:
- nylon
minio_mc:
profiles:
- minio
image: "minio/mc:RELEASE.2023-09-20T15-22-31Z"
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
mc alias set local http://minio:9000 miniouser miniopass;
mc mb -p local/polymer-rocks;
mc mb -p local/protected.polymer.rocks;
mc anonymous set public local/polymer-rocks;
depends_on:
minio:
condition: service_healthy
networks:
- nylon
minio_ingest:
profiles:
- minio
image: "minio/mc:RELEASE.2023-09-20T15-22-31Z"
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
mc alias set local http://minio:9000 miniouser miniopass;
mc cp --recursive /tiles local/polymer-rocks;
mc cp --recursive /cogs local/polymer-rocks;
mc cp --recursive /pdfs local/protected.polymer.rocks;
depends_on:
minio_mc:
condition: service_completed_successfully
volumes:
- ${PWD}/load:/tiles
- ${PWD}/load_cogs:/cogs
- ${PWD}/load_pdfs:/pdfs
networks:
- nylon