Commit a7503ce 1 parent 84b7423 commit a7503ce Copy full SHA for a7503ce
File tree 6 files changed +94
-1
lines changed
6 files changed +94
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ services:
29
29
- INSTALL_LARAVEL_ENVOY=false
30
30
- INSTALL_DEPLOYER=false
31
31
- INSTALL_LINUXBREW=false
32
+ - INSTALL_MC=false
32
33
- PUID=1000
33
34
- PGID=1000
34
35
- NODE_VERSION=stable
@@ -120,6 +121,18 @@ services:
120
121
links :
121
122
- workspace
122
123
124
+ # ## Minio Container #########################################
125
+
126
+ minio :
127
+ build : ./minio
128
+ volumes :
129
+ - minio:/export
130
+ ports :
131
+ - " 9000:9000"
132
+ environment :
133
+ MINIO_ACCESS_KEY : access
134
+ MINIO_SECRET_KEY : secretkey
135
+
123
136
# ## MySQL Container #########################################
124
137
125
138
mysql :
@@ -354,6 +367,8 @@ volumes:
354
367
driver : " local"
355
368
mongo :
356
369
driver : " local"
370
+ minio :
371
+ driver : " local"
357
372
rethinkdb :
358
373
driver : " local"
359
374
phpmyadmin :
Original file line number Diff line number Diff line change @@ -850,8 +850,35 @@ docker-compose up -d rethinkdb
850
850
- set the ` DB_DATABASE ` to ` database ` .
851
851
852
852
853
+ <br >
854
+ <a name =" Use-Minio " ></a >
855
+ ## Use Minio
856
+
857
+ 1 - Configure Minio:
858
+ - On the workspace container, change ` INSTALL_MC ` to true to get the client
859
+ - Set ` MINIO_ACCESS_KEY ` and ` MINIO_ACCESS_SECRET ` if you wish to set proper keys
860
+
861
+ 2 - Run the Minio Container (` minio ` ) with the ` docker-compose up ` command. Example:
862
+
863
+ ``` bash
864
+ docker-compose up -d minio
865
+ ```
866
+
867
+ 3 - Open your browser and visit the localhost on port ** 9000** at the following URL: ` http://localhost:9000 `
853
868
869
+ 4 - Create a bucket either through the webui or using the mc client:
870
+ ``` bash
871
+ mc mb minio/bucket
872
+ ```
854
873
874
+ 5 - When configuring your other clients use the following details:
875
+ ```
876
+ S3_HOST=http://minio
877
+ S3_KEY=access
878
+ S3_SECRET=secretkey
879
+ S3_REGION=us-east-1
880
+ S3_BUCKET=bucket
881
+ ```
855
882
856
883
857
884
<br >
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ What's better than a **Demo Video**:
165
165
- PgAdmin
166
166
- ElasticSearch
167
167
- Selenium
168
+ - Minio
168
169
- Workspace
169
170
- PHP7-CLI
170
171
- Composer
Original file line number Diff line number Diff line change
1
+ FROM minio/minio
2
+
3
+ MAINTAINER Thor Erik Lie <
[email protected] >
4
+
5
+ ENTRYPOINT ["minio" , "server" , "/export" ]
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ RUN echo "" >> ~/.bashrc && \
113
113
echo "# Load Custom Aliases" >> ~/.bashrc && \
114
114
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
115
115
echo "" >> ~/.bashrc
116
-
116
+
117
117
USER root
118
118
RUN echo "" >> ~/.bashrc && \
119
119
echo "# Load Custom Aliases" >> ~/.bashrc && \
@@ -374,6 +374,22 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
374
374
echo 'export LD_LIBRARY_PATH="$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc \
375
375
;fi
376
376
377
+ # ####################################
378
+ # Minio:
379
+ # ####################################
380
+ USER root
381
+ ARG INSTALL_MC=false
382
+ ENV INSTALL_MC ${INSTALL_MC}
383
+
384
+ COPY mc/config.json /root/.mc/config.json
385
+
386
+ RUN if [ ${INSTALL_MC} = true ]; then\
387
+ curl -fsSL -o /usr/local/bin/mc https://dl.minio.io/client/mc/release/linux-amd64/mc && \
388
+ chmod +x /usr/local/bin/mc \
389
+ ;fi
390
+
391
+ USER laradock
392
+
377
393
#
378
394
# --------------------------------------------------------------------------
379
395
# Final Touch
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 8" ,
3
+ "hosts" : {
4
+ "gcs" : {
5
+ "url" : " https://storage.googleapis.com" ,
6
+ "accessKey" : " YOUR-ACCESS-KEY-HERE" ,
7
+ "secretKey" : " YOUR-SECRET-KEY-HERE" ,
8
+ "api" : " S3v2"
9
+ },
10
+ "minio" : {
11
+ "url" : " http://minio:9000" ,
12
+ "accessKey" : " access" ,
13
+ "secretKey" : " secretkey" ,
14
+ "api" : " S3v4"
15
+ },
16
+ "play" : {
17
+ "url" : " https://play.minio.io:9000" ,
18
+ "accessKey" : " Q3AM3UQ867SPQQA43P2F" ,
19
+ "secretKey" : " zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" ,
20
+ "api" : " S3v4"
21
+ },
22
+ "s3" : {
23
+ "url" : " https://s3.amazonaws.com" ,
24
+ "accessKey" : " YOUR-ACCESS-KEY-HERE" ,
25
+ "secretKey" : " YOUR-SECRET-KEY-HERE" ,
26
+ "api" : " S3v4"
27
+ }
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments