1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
This commit is contained in:
kev 2021-12-01 18:11:40 +08:00
parent ac617d603c
commit e3edfac574
6 changed files with 43 additions and 53 deletions

View File

@ -1,36 +1,16 @@
minio
=====
[Minio][1] is an object storage server released under Apache License v2.0. It is
compatible with Amazon S3 cloud storage service. It is best suited for storing
unstructured data such as photos, videos, log files, backups and container / VM
images. Size of an object can range from a few KBs to a maximum of 5TB.
Minio server is light enough to be bundled with the application stack, similar
to NodeJS, Redis and MySQL.
## docker-compose.yml
```yaml
minio:
image: minio/minio
command: server /data
ports:
- "9000:9000"
volumes:
- ./data:/data
- ./conf:/root/.minio
restart: always
```
[Minio][1] offers high-performance, S3 compatible object storage.
Native to Kubernetes, MinIO is the only object storage suite available on
every public cloud, every Kubernetes distribution, the private cloud and the
edge. MinIO is software-defined and is 100% open source under GNU AGPL v3.
## Server
```bash
$ docker-compose up -d
$ cat ./conf/config.json
# "accessKey": "XXXXXXXXXXXXXXXXXXXX",
# "secretKey": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
$ curl -u XXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY http://127.0.0.1:9000
$ curl http://127.0.0.1:9000
```
## Client
@ -38,13 +18,14 @@ $ curl -u XXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY http://1
Download minio client:
- [linux/amd64][2]
- [linux/386][3]
- [linux/arm][4]
- [linux/arm][3]
- [windows/arm64][4]
Read minio [tutorial][5].
```bash
$ mc config host add minio http://127.0.0.1:9000 XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$ mc alias set minio http://127.0.0.1:9000 XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$ cat ~/.mc/config.json
$ mc mb minio/test
$ mc cp README.md minio/test
$ mc cat minio/test/README.md
@ -64,7 +45,7 @@ $ termux-camera-photo -c 0 back.jpg
$ termux-camera-photo -c 1 front.jpg
$ go get -u github.com/minio/mc
$ mc config host add minio http://127.0.0.1:9000 XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$ mc alias set minio http://127.0.0.1:9000 XXXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$ mc mb minio/android
$ mc mirror --force --remove --watch /storage/emulated/0/DCIM/Camera/ minio/android/camera
```
@ -99,6 +80,6 @@ $ rm -r xxx
[1]: https://minio.io/
[2]: https://dl.minio.io/client/mc/release/linux-amd64/mc
[3]: https://dl.minio.io/client/mc/release/linux-386/mc
[4]: https://dl.minio.io/client/mc/release/linux-arm/mc
[5]: https://docs.minio.io/docs/minio-client-quickstart-guide
[3]: https://dl.minio.io/client/mc/release/linux-arm/mc
[4]: https://dl.minio.io/client/mc/release/windows-amd64/mc
[5]: https://docs.min.io/docs/minio-client-complete-guide

View File

@ -1,9 +1,15 @@
minio:
image: minio/minio
command: server /data
ports:
- "9000:9000"
volumes:
- ./data:/data
- ./conf:/root/.minio
restart: always
version: "3.8"
services:
minio:
image: minio/minio
command: server /data --console-address :9001
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data:/data
- ./conf:/root/.minio
environment:
- MINIO_ROOT_USER=XXXXXXXXXXXXXXXXXXXX
- MINIO_ROOT_PASSWORD=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
restart: unless-stopped

View File

@ -3,13 +3,13 @@ version: "3.8"
services:
oss:
image: minio/minio:RELEASE.2019-10-12T01-39-57Z
image: minio/minio:RELEASE.2020-04-15T19-42-18Z
command: gateway oss https://oss-cn-beijing.aliyuncs.com
ports:
- "9000:9000"
environment:
- MINIO_ACCESS_KEY=ossaccesskey
- MINIO_SECRET_KEY=osssecretkey
- MINIO_ACCESS_KEY=oss_access_key
- MINIO_SECRET_KEY=oss_secret_key
restart: unless-stopped
s3:
@ -18,8 +18,8 @@ services:
ports:
- "9001:9000"
environment:
- MINIO_ACCESS_KEY=awsaccesskey
- MINIO_SECRET_KEY=awssecretkey
- MINIO_ROOT_USER=aws_s3_access_key
- MINIO_ROOT_PASSWORD=aws_s3_secret_key
restart: unless-stopped
nas:
@ -30,6 +30,6 @@ services:
volumes:
- ./data:/data
environment:
- MINIO_ACCESS_KEY=nasaccesskey
- MINIO_SECRET_KEY=nassecretkey
- MINIO_ROOT_USER=nas_access_key
- MINIO_ROOT_PASSWORD=nas_secret_key
restart: unless-stopped

View File

@ -11,7 +11,7 @@ Aedahwa7
$ docker-compose up -d
$ docker cp mongo:/usr/bin/mongo /usr/local/bin/
$ docker-compose cp mongo:/usr/bin/mongo /usr/local/bin/
$ mongo mongodb://root:root@localhost:27017/admin
>>> use mydb

View File

@ -1,10 +1,13 @@
nexus3
======
[Sonatype Nexus Repository Manager 3](https://hub.docker.com/r/sonatype/nexus3/)
## up and running
```bash
$ mkdir data
$ chown -R 200 data
$ docker-compose up -d
$ curl 127.0.0.1:8081
```

View File

@ -1,9 +1,9 @@
version: "3.7"
version: "3.8"
services:
nexus3:
image: sonatype/nexus3
image: sonatype/nexus3:3.37.0
ports:
- "8081:8081"
volumes:
@ -13,10 +13,10 @@ services:
restart: unless-stopped
minio:
image: minio/minio
image: minio/minio:RELEASE.2020-04-15T19-42-18Z
command: gateway oss https://oss-cn-beijing.aliyuncs.com
expose:
- "9000"
- "9000:9000"
environment:
- MINIO_ACCESS_KEY=xxxxxxxxxxxxxxxx
- MINIO_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx