Skip to content

Commit 459149a

Browse files
committed
First commit to master branch
0 parents  commit 459149a

File tree

3,565 files changed

+496153
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,565 files changed

+496153
-0
lines changed

.env.example

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# ================================================================================================
2+
# WORKSPACE
3+
# ================================================================================================
4+
WORKSPACE=./workspace
5+
6+
# ================================================================================================
7+
# CACHE
8+
# ================================================================================================
9+
CACHE_REDIS=./cache/redis
10+
CACHE_MEMCACHED=./cache/memcached
11+
12+
# ================================================================================================
13+
# CONFIG
14+
# ================================================================================================
15+
CONFIG_MONGODB=./config/mongodb/mongodb.conf
16+
CONFIG_MYSQL=./config/mysql/my.cnf
17+
CONFIG_MYSQL_DOCKER=./config/mysql/conf.d/docker.cnf
18+
CONFIG_NGINX=./config/nginx
19+
CONFIG_NGINX_PUMA=./config/nginx/puma
20+
CONFIG_NGINX_UNICORN=./config/nginx/unicorn
21+
CONFIG_POSTGRESQL=./config/nginx/postgresql.conf
22+
23+
# ================================================================================================
24+
# DATABASE
25+
# ================================================================================================
26+
DATABASE_MARIADB=./database/mariadb
27+
DATABASE_MONGODB=./database/mongodb
28+
DATABASE_MYSQL=./database/mysql
29+
DATABASE_POSTGRESQL=./database/postgresql
30+
31+
# ================================================================================================
32+
# LOG
33+
# ================================================================================================
34+
LOG_MARIADB=./log/mariadb
35+
LOG_MONGODB=./log/mongodb
36+
LOG_MYSQL=./log/mysql
37+
LOG_NGINX=./log/nginx
38+
LOG_POSTGRESQL=./log/postgresql
39+
40+
# ================================================================================================
41+
# SESSION
42+
# ================================================================================================
43+
SESSION_ADMINER=./session/adminer
44+
45+
# ================================================================================================
46+
# ADMINER
47+
# ================================================================================================
48+
ADMINER_VERSION=4.6.1
49+
ADMINER_PORT=8080
50+
INSTALL_MSSQL=false
51+
52+
# ================================================================================================
53+
# MARIADB
54+
# ================================================================================================
55+
MARIADB_VERSION=10.3.4
56+
MARIADB_ROOT_PASSWORD=root_password
57+
MARIADB_ROOT_HOST=localhost
58+
MARIADB_DATABASE=docker_framework
59+
MARIADB_USER=zeroc0d3_username
60+
MARIADB_PASSWORD=zeroc0d3_password
61+
MARIADB_PORT=33062
62+
63+
# ================================================================================================
64+
# MONGODB
65+
# ================================================================================================
66+
MONGO_VERSION=3.6.2
67+
MONGO_INITDB_ROOT_PASSWORD=root_password
68+
MONGO_INITDB_ROOT_USERNAME=root_mongo
69+
MONGO_INITDB_ROOT_HOST=localhost
70+
MONGO_DATABASE=docker_framework
71+
MONGO_USER=zeroc0d3_username
72+
MONGO_PASSWORD=zeroc0d3_password
73+
MONGO_PORT=27017
74+
75+
# ================================================================================================
76+
# MYSQL
77+
# ================================================================================================
78+
# MYSQL_VERSION=5.7.21
79+
MYSQL_VERSION=8.0.3
80+
MYSQL_ROOT_PASSWORD=root_password
81+
MYSQL_ROOT_HOST=localhost
82+
MYSQL_DATABASE=docker_framework
83+
MYSQL_USER=zeroc0d3_username
84+
MYSQL_PASSWORD=zeroc0d3_password
85+
MYSQL_PORT=33061
86+
87+
# ================================================================================================
88+
# POSTGRESQL
89+
# ================================================================================================
90+
# POSTGRES_VERSION=9.6.7
91+
POSTGRES_VERSION=10.2
92+
POSTGRES_ROOT_PASSWORD=root_password
93+
POSTGRES_ROOT_HOST=localhost
94+
POSTGRES_DATABASE=docker_framework
95+
POSTGRES_USER=zeroc0d3_username
96+
POSTGRES_PASSWORD=zeroc0d3_password
97+
POSTGRES_PORT=54321
98+
99+
# ================================================================================================
100+
# REDIS
101+
# ================================================================================================
102+
REDIS_VERSION=3.2.8
103+
REDIS_PORT=63791
104+
105+
# ================================================================================================
106+
# RUBY
107+
# ================================================================================================
108+
RUBY_VERSION=2.4.2
109+
RUBY_PORT=2222
110+
111+
# ================================================================================================
112+
# VIM
113+
# ================================================================================================
114+
VIM_VERSION=8.0.1207
115+
LUA_VERSION=5.3.4
116+
LUAROCKS_VERSION=2.4.3
117+
VIM_PORT=2223

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.env
2+
3+
db/mariadb/**
4+
db/mongodb/**
5+
db/mysql/**
6+
db/postgresql/**
7+
8+
log/mariadb/*.log
9+
log/mongodb/*.log
10+
log/mysql/*.log
11+
log/nginx/*.log
12+
log/postgresql/*.log
13+
14+
session/adminer/**
15+
16+
workspace/**

CHANGELOG

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## version 1.0-alpha
2+
======================
3+
* First release with Docker Frameworks
4+
* Including features for dynamic environments:
5+
- Adminer
6+
- MariaDB
7+
- MySQL
8+
- MongoDB
9+
- Nginx
10+
- PostgreSQL
11+
- Ruby
12+
- Vim

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017-2018 ZeroC0D3 Engineer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Docker Framework
2+
3+
Flexibility Configuration for Docker Environment
4+
5+
## Environments
6+
You can run docker-compose for different environment with selected containers
7+
* Copy / Rename `.env.example` to `.env` file
8+
```
9+
cp .env.example .env
10+
```
11+
* Change to execute script
12+
```
13+
chmod a+x run_docker.sh
14+
```
15+
* Change environment in `run_docker.sh` file
16+
```
17+
ENV="0" # (use: "development" or "production" as selected environment)
18+
CONTAINER_PRODUCTION="..." # (selected containers will be run in production environment)
19+
CONTAINER_DEVELOPMENT="..." # (selected containers will be run in development environment)
20+
```
21+
* Running script
22+
```
23+
./run_docker.sh
24+
```
25+
26+
## Documentation
27+
* Configuration & How-To, see
28+
[**Wiki Documentation**](https://github.com/zeroc0d3/docker-framework/wiki)
29+
30+
## Roadmap
31+
* - [X] Multi Database Container & Multi Version Database
32+
* - [X] Default Configuration NGINX (staging, staging-ssl, production, production-ssl)
33+
* - [X] Healthy Check Docker Container
34+
* - [ ] Unit Test Docker Container
35+
* - [ ] Asynchronous / Background Job for Vulnerability Scan (Security Assessment)
36+
37+
## License
38+
[**MIT License**](https://github.com/zeroc0d3/docker-Framework/blob/master/LICENSE)

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0-alpha

cached/memcached/.gitignore

Whitespace-only changes.

cached/redis/.gitignore

Whitespace-only changes.

config/.gitkeep

Whitespace-only changes.

config/mongodb/mongodb.conf

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# /etc/mongod.conf
2+
3+
# for documentation of all options, see:
4+
# http://docs.mongodb.org/manual/reference/configuration-options/
5+
6+
# Where and how to store data.
7+
storage:
8+
dbPath: /var/lib/mongodb
9+
journal:
10+
enabled: true
11+
# engine:
12+
# mmapv1:
13+
# wiredTiger:
14+
15+
# where to write logging data.
16+
systemLog:
17+
destination: file
18+
logAppend: true
19+
path: /var/log/mongodb/mongod.log
20+
21+
# network interfaces
22+
net:
23+
port: 27017
24+
bindIp: 127.0.0.1
25+
26+
# how the process runs
27+
processManagement:
28+
timeZoneInfo: /usr/share/zoneinfo
29+
30+
security:
31+
authorization: "enabled"
32+
33+
#operationProfiling:
34+
35+
#replication:
36+
37+
#sharding:
38+
39+
## Enterprise-Only Options:
40+
41+
#auditLog:
42+
43+
#snmp:

config/mysql/conf.d/docker.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[mysqld]
2+
skip-host-cache
3+
skip-name-resolve

config/mysql/my.cnf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15+
16+
#
17+
# The MySQL Server configuration file.
18+
#
19+
# For explanations see
20+
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
21+
22+
[mysqld]
23+
pid-file = /var/run/mysqld/mysqld.pid
24+
socket = /var/run/mysqld/mysqld.sock
25+
datadir = /var/lib/mysql
26+
secure-file-priv= NULL
27+
# Disabling symbolic-links is recommended to prevent assorted security risks
28+
symbolic-links=0
29+
30+
# Custom config should go here
31+
!includedir /etc/mysql/conf.d/

0 commit comments

Comments
 (0)