mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
update
This commit is contained in:
parent
ac617d603c
commit
e3edfac574
@ -1,36 +1,16 @@
|
|||||||
minio
|
minio
|
||||||
=====
|
=====
|
||||||
|
|
||||||
[Minio][1] is an object storage server released under Apache License v2.0. It is
|
[Minio][1] offers high-performance, S3 compatible object storage.
|
||||||
compatible with Amazon S3 cloud storage service. It is best suited for storing
|
Native to Kubernetes, MinIO is the only object storage suite available on
|
||||||
unstructured data such as photos, videos, log files, backups and container / VM
|
every public cloud, every Kubernetes distribution, the private cloud and the
|
||||||
images. Size of an object can range from a few KBs to a maximum of 5TB.
|
edge. MinIO is software-defined and is 100% open source under GNU AGPL v3.
|
||||||
|
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ cat ./conf/config.json
|
$ curl http://127.0.0.1:9000
|
||||||
# "accessKey": "XXXXXXXXXXXXXXXXXXXX",
|
|
||||||
# "secretKey": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
|
|
||||||
$ curl -u XXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY http://127.0.0.1:9000
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Client
|
## Client
|
||||||
@ -38,13 +18,14 @@ $ curl -u XXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY http://1
|
|||||||
Download minio client:
|
Download minio client:
|
||||||
|
|
||||||
- [linux/amd64][2]
|
- [linux/amd64][2]
|
||||||
- [linux/386][3]
|
- [linux/arm][3]
|
||||||
- [linux/arm][4]
|
- [windows/arm64][4]
|
||||||
|
|
||||||
Read minio [tutorial][5].
|
Read minio [tutorial][5].
|
||||||
|
|
||||||
```bash
|
```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 mb minio/test
|
||||||
$ mc cp README.md minio/test
|
$ mc cp README.md minio/test
|
||||||
$ mc cat minio/test/README.md
|
$ mc cat minio/test/README.md
|
||||||
@ -64,7 +45,7 @@ $ termux-camera-photo -c 0 back.jpg
|
|||||||
$ termux-camera-photo -c 1 front.jpg
|
$ termux-camera-photo -c 1 front.jpg
|
||||||
|
|
||||||
$ go get -u github.com/minio/mc
|
$ 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 mb minio/android
|
||||||
$ mc mirror --force --remove --watch /storage/emulated/0/DCIM/Camera/ minio/android/camera
|
$ mc mirror --force --remove --watch /storage/emulated/0/DCIM/Camera/ minio/android/camera
|
||||||
```
|
```
|
||||||
@ -99,6 +80,6 @@ $ rm -r xxx
|
|||||||
|
|
||||||
[1]: https://minio.io/
|
[1]: https://minio.io/
|
||||||
[2]: https://dl.minio.io/client/mc/release/linux-amd64/mc
|
[2]: https://dl.minio.io/client/mc/release/linux-amd64/mc
|
||||||
[3]: https://dl.minio.io/client/mc/release/linux-386/mc
|
[3]: https://dl.minio.io/client/mc/release/linux-arm/mc
|
||||||
[4]: https://dl.minio.io/client/mc/release/linux-arm/mc
|
[4]: https://dl.minio.io/client/mc/release/windows-amd64/mc
|
||||||
[5]: https://docs.minio.io/docs/minio-client-quickstart-guide
|
[5]: https://docs.min.io/docs/minio-client-complete-guide
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
minio:
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
minio:
|
||||||
image: minio/minio
|
image: minio/minio
|
||||||
command: server /data
|
command: server /data --console-address :9001
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "9000:9000"
|
||||||
|
- "9001:9001"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- ./conf:/root/.minio
|
- ./conf:/root/.minio
|
||||||
restart: always
|
environment:
|
||||||
|
- MINIO_ROOT_USER=XXXXXXXXXXXXXXXXXXXX
|
||||||
|
- MINIO_ROOT_PASSWORD=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
|
||||||
|
restart: unless-stopped
|
||||||
|
@ -3,13 +3,13 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
oss:
|
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
|
command: gateway oss https://oss-cn-beijing.aliyuncs.com
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "9000:9000"
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ACCESS_KEY=ossaccesskey
|
- MINIO_ACCESS_KEY=oss_access_key
|
||||||
- MINIO_SECRET_KEY=osssecretkey
|
- MINIO_SECRET_KEY=oss_secret_key
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
@ -18,8 +18,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9001:9000"
|
- "9001:9000"
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ACCESS_KEY=awsaccesskey
|
- MINIO_ROOT_USER=aws_s3_access_key
|
||||||
- MINIO_SECRET_KEY=awssecretkey
|
- MINIO_ROOT_PASSWORD=aws_s3_secret_key
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
nas:
|
nas:
|
||||||
@ -30,6 +30,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ACCESS_KEY=nasaccesskey
|
- MINIO_ROOT_USER=nas_access_key
|
||||||
- MINIO_SECRET_KEY=nassecretkey
|
- MINIO_ROOT_PASSWORD=nas_secret_key
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -11,7 +11,7 @@ Aedahwa7
|
|||||||
|
|
||||||
$ docker-compose up -d
|
$ 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
|
$ mongo mongodb://root:root@localhost:27017/admin
|
||||||
>>> use mydb
|
>>> use mydb
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
nexus3
|
nexus3
|
||||||
======
|
======
|
||||||
|
|
||||||
|
[Sonatype Nexus Repository Manager 3](https://hub.docker.com/r/sonatype/nexus3/)
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mkdir data
|
$ mkdir data
|
||||||
$ chown -R 200 data
|
$ chown -R 200 data
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
$ curl 127.0.0.1:8081
|
||||||
```
|
```
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
version: "3.7"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
nexus3:
|
nexus3:
|
||||||
image: sonatype/nexus3
|
image: sonatype/nexus3:3.37.0
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
volumes:
|
volumes:
|
||||||
@ -13,10 +13,10 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio
|
image: minio/minio:RELEASE.2020-04-15T19-42-18Z
|
||||||
command: gateway oss https://oss-cn-beijing.aliyuncs.com
|
command: gateway oss https://oss-cn-beijing.aliyuncs.com
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000:9000"
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ACCESS_KEY=xxxxxxxxxxxxxxxx
|
- MINIO_ACCESS_KEY=xxxxxxxxxxxxxxxx
|
||||||
- MINIO_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
- MINIO_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
Loading…
Reference in New Issue
Block a user