Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
164b699f
Commit
164b699f
authored
Mar 06, 2017
by
Mahmoud Zalt
Committed by
GitHub
Mar 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #653 from thorerik/add-minio
Add minio container
parents
84b74231
c63bf5ea
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
1 deletion
+94
-1
docker-compose.yml
docker-compose.yml
+15
-0
index.md
docs/_settings/content/documentation/index.md
+27
-0
index.md
docs/_settings/content/introduction/index.md
+1
-0
Dockerfile
minio/Dockerfile
+5
-0
Dockerfile
workspace/Dockerfile
+17
-1
config.json
workspace/mc/config.json
+29
-0
No files found.
docker-compose.yml
View file @
164b699f
...
...
@@ -29,6 +29,7 @@ services:
-
INSTALL_LARAVEL_ENVOY=false
-
INSTALL_DEPLOYER=false
-
INSTALL_LINUXBREW=false
-
INSTALL_MC=false
-
PUID=1000
-
PGID=1000
-
NODE_VERSION=stable
...
...
@@ -120,6 +121,18 @@ services:
links
:
-
workspace
### Minio Container #########################################
minio
:
build
:
./minio
volumes
:
-
minio:/export
ports
:
-
"
9000:9000"
environment
:
MINIO_ACCESS_KEY
:
access
MINIO_SECRET_KEY
:
secretkey
### MySQL Container #########################################
mysql
:
...
...
@@ -354,6 +367,8 @@ volumes:
driver
:
"
local"
mongo
:
driver
:
"
local"
minio
:
driver
:
"
local"
rethinkdb
:
driver
:
"
local"
phpmyadmin
:
...
...
docs/_settings/content/documentation/index.md
View file @
164b699f
...
...
@@ -850,8 +850,35 @@ docker-compose up -d rethinkdb
-
set the
`DB_DATABASE`
to
`database`
.
<br>
<a
name=
"Use-Minio"
></a>
## Use Minio
1 - Configure Minio:
-
On the workspace container, change
`INSTALL_MC`
to true to get the client
-
Set
`MINIO_ACCESS_KEY`
and
`MINIO_ACCESS_SECRET`
if you wish to set proper keys
2 - Run the Minio Container (
`minio`
) with the
`docker-compose up`
command. Example:
```
bash
docker-compose up
-d
minio
```
3 - Open your browser and visit the localhost on port
**9000**
at the following URL:
`http://localhost:9000`
4 - Create a bucket either through the webui or using the mc client:
```
bash
mc mb minio/bucket
```
5 - When configuring your other clients use the following details:
```
S3_HOST
=
http://minio
S3_KEY
=
access
S3_SECRET
=
secretkey
S3_REGION
=
us-east-1
S3_BUCKET
=
bucket
```
<br>
...
...
docs/_settings/content/introduction/index.md
View file @
164b699f
...
...
@@ -165,6 +165,7 @@ What's better than a **Demo Video**:
-
PgAdmin
-
ElasticSearch
-
Selenium
-
Minio
-
Workspace
-
PHP7-CLI
-
Composer
...
...
minio/Dockerfile
0 → 100644
View file @
164b699f
FROM
minio/minio
MAINTAINER
Thor Erik Lie <thor@thorerik.com>
ENTRYPOINT
["minio", "server", "/export"]
workspace/Dockerfile
View file @
164b699f
...
...
@@ -113,7 +113,7 @@ RUN echo "" >> ~/.bashrc && \
echo
"# Load Custom Aliases"
>>
~/.bashrc
&&
\
echo
"source /home/laradock/aliases.sh"
>>
~/.bashrc
&&
\
echo
""
>>
~/.bashrc
USER
root
RUN
echo
""
>>
~/.bashrc
&&
\
echo
"# Load Custom Aliases"
>>
~/.bashrc
&&
\
...
...
@@ -374,6 +374,22 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
echo 'export LD_LIBRARY_PATH="$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc \
;fi
#####################################
# Minio:
#####################################
USER
root
ARG
INSTALL_MC=false
ENV
INSTALL_MC ${INSTALL_MC}
COPY
mc/config.json /root/.mc/config.json
RUN if
[
${
INSTALL_MC
}
=
true
]
;
then
\
curl
-fsSL
-o
/usr/local/bin/mc https://dl.minio.io/client/mc/release/linux-amd64/mc
&&
\
chmod
+x /usr/local/bin/mc
\
;
fi
USER
laradock
#
#--------------------------------------------------------------------------
# Final Touch
...
...
workspace/mc/config.json
0 → 100644
View file @
164b699f
{
"version"
:
"8"
,
"hosts"
:
{
"gcs"
:
{
"url"
:
"https://storage.googleapis.com"
,
"accessKey"
:
"YOUR-ACCESS-KEY-HERE"
,
"secretKey"
:
"YOUR-SECRET-KEY-HERE"
,
"api"
:
"S3v2"
},
"minio"
:
{
"url"
:
"http://minio:9000"
,
"accessKey"
:
"access"
,
"secretKey"
:
"secretkey"
,
"api"
:
"S3v4"
},
"play"
:
{
"url"
:
"https://play.minio.io:9000"
,
"accessKey"
:
"Q3AM3UQ867SPQQA43P2F"
,
"secretKey"
:
"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
,
"api"
:
"S3v4"
},
"s3"
:
{
"url"
:
"https://s3.amazonaws.com"
,
"accessKey"
:
"YOUR-ACCESS-KEY-HERE"
,
"secretKey"
:
"YOUR-SECRET-KEY-HERE"
,
"api"
:
"S3v4"
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment