From 73f7c8812220dbe2e041c6cba9e659982ba50ea4 Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Thu, 9 Mar 2017 19:21:36 +0700 Subject: [PATCH 1/8] Fixing environment in docker-compose file --- docker-compose.yml | 268 ++++++++++++++++++++++----------------------- 1 file changed, 134 insertions(+), 134 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 67af2244..621a5a5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,8 +7,8 @@ services: applications: image: tianon/true volumes: - - ../:/var/www -# - ../sample/:/var/www/sample + - ../:/var/www +# - ../sample/:/var/www/sample ### Workspace Utilities Container ########################### @@ -16,31 +16,31 @@ services: build: context: ./workspace args: - - INSTALL_XDEBUG=false - - INSTALL_SOAP=false - - INSTALL_MONGO=false - - INSTALL_NODE=false - - INSTALL_YARN=false - - INSTALL_DRUSH=false - - INSTALL_AEROSPIKE_EXTENSION=false - - INSTALL_V8JS_EXTENSION=false - - COMPOSER_GLOBAL_INSTALL=false - - INSTALL_WORKSPACE_SSH=false - - INSTALL_LARAVEL_ENVOY=false - - INSTALL_DEPLOYER=false - - INSTALL_LINUXBREW=false - - PUID=1000 - - PGID=1000 - - NODE_VERSION=stable - - YARN_VERSION=latest - - TZ=UTC + - INSTALL_XDEBUG=false + - INSTALL_SOAP=false + - INSTALL_MONGO=false + - INSTALL_NODE=false + - INSTALL_YARN=false + - INSTALL_DRUSH=false + - INSTALL_AEROSPIKE_EXTENSION=false + - INSTALL_V8JS_EXTENSION=false + - COMPOSER_GLOBAL_INSTALL=false + - INSTALL_WORKSPACE_SSH=false + - INSTALL_LARAVEL_ENVOY=false + - INSTALL_DEPLOYER=false + - INSTALL_LINUXBREW=false + - PUID=1000 + - PGID=1000 + - NODE_VERSION=stable + - YARN_VERSION=latest + - TZ=UTC volumes_from: - - applications + - applications extra_hosts: - # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) - - "dockerhost:10.0.75.1" + # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) + - "dockerhost:10.0.75.1" ports: - - "2222:22" + - "2222:22" tty: true ### PHP-FPM Container ####################################### @@ -49,30 +49,30 @@ services: build: context: ./php-fpm args: - - INSTALL_XDEBUG=false - - INSTALL_SOAP=false - - INSTALL_MONGO=false - - INSTALL_ZIP_ARCHIVE=false - - INSTALL_BCMATH=false - - INSTALL_PHPREDIS=false - - INSTALL_MEMCACHED=false - - INSTALL_OPCACHE=false - - INSTALL_EXIF=false - - INSTALL_AEROSPIKE_EXTENSION=false - - CODEIGNITER=false + - INSTALL_XDEBUG=false + - INSTALL_SOAP=false + - INSTALL_MONGO=false + - INSTALL_ZIP_ARCHIVE=false + - INSTALL_BCMATH=false + - INSTALL_PHPREDIS=false + - INSTALL_MEMCACHED=false + - INSTALL_OPCACHE=false + - INSTALL_EXIF=false + - INSTALL_AEROSPIKE_EXTENSION=false + - CODEIGNITER=false dockerfile: Dockerfile-70 volumes_from: - - applications + - applications expose: - - "9000" + - "9000" links: - - workspace + - workspace extra_hosts: - # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) - - "dockerhost:10.0.75.1" + # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) + - "dockerhost:10.0.75.1" environment: - # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel` - - PHP_IDE_CONFIG=serverName=laravel + # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel` + - PHP_IDE_CONFIG=serverName=laravel ### Nginx Server Container ################################## @@ -80,17 +80,17 @@ services: build: context: ./nginx args: - - PHP_UPSTREAM=php-fpm + - PHP_UPSTREAM=php-fpm volumes_from: - - applications + - applications volumes: - - ./logs/nginx/:/var/log/nginx - - ./nginx/sites/:/etc/nginx/sites-available + - ./logs/nginx/:/var/log/nginx + - ./nginx/sites/:/etc/nginx/sites-available ports: - - "80:80" - - "443:443" + - "80:80" + - "443:443" links: - - php-fpm + - php-fpm ### Apache Server Container ################################# @@ -98,27 +98,27 @@ services: build: context: ./apache2 args: - - PHP_SOCKET=php-fpm:9000 + - PHP_SOCKET=php-fpm:9000 volumes_from: - - applications + - applications volumes: - - ./logs/apache2:/var/log/apache2 + - ./logs/apache2:/var/log/apache2 ports: - - "80:80" - - "443:443" + - "80:80" + - "443:443" links: - - php-fpm + - php-fpm ### HHVM Container ########################################## hhvm: build: ./hhvm volumes_from: - - applications + - applications expose: - - "9000" + - "9000" links: - - workspace + - workspace ### MySQL Container ######################################### @@ -126,107 +126,107 @@ services: build: context: ./mysql args: - - MYSQL_DATABASE=homestead - - MYSQL_USER=homestead - - MYSQL_PASSWORD=secret - - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=homestead + - MYSQL_USER=homestead + - MYSQL_PASSWORD=secret + - MYSQL_ROOT_PASSWORD=root volumes: - - mysql:/var/lib/mysql + - mysql:/var/lib/mysql ports: - - "3306:3306" + - "3306:3306" ### MariaDB Container ####################################### mariadb: build: ./mariadb volumes: - - mariadb:/var/lib/mysql + - mariadb:/var/lib/mysql ports: - - "3306:3306" + - "3306:3306" environment: - MYSQL_DATABASE: homestead - MYSQL_USER: homestead - MYSQL_PASSWORD: secret - MYSQL_ROOT_PASSWORD: root + - MYSQL_DATABASE=homestead + - MYSQL_USER=homestead + - MYSQL_PASSWORD=secret + - MYSQL_ROOT_PASSWORD=root ### PostgreSQL Container #################################### postgres: build: ./postgres volumes: - - postgres:/var/lib/postgresql/data + - postgres:/var/lib/postgresql/data ports: - - "5432:5432" + - "5432:5432" environment: - POSTGRES_DB: homestead - POSTGRES_USER: homestead - POSTGRES_PASSWORD: secret + - POSTGRES_DB=homestead + - POSTGRES_USER=homestead + - POSTGRES_PASSWORD=secret ### PostgreSQL PostGis Container ############################ postgres-postgis: build: ./postgres-postgis volumes: - - postgres:/var/lib/postgresql/data + - postgres:/var/lib/postgresql/data ports: - - "5432:5432" + - "5432:5432" environment: - POSTGRES_DB: homestead - POSTGRES_USER: homestead - POSTGRES_PASSWORD: secret + - POSTGRES_DB=homestead + - POSTGRES_USER=homestead + - POSTGRES_PASSWORD=secret ### Neo4j Container ######################################### neo4j: build: ./neo4j ports: - - "7474:7474" - - "1337:1337" + - "7474:7474" + - "1337:1337" environment: - - NEO4J_AUTH=homestead:secret + - NEO4J_AUTH=homestead:secret volumes: - - neo4j:/var/lib/neo4j/data + - neo4j:/var/lib/neo4j/data ### MongoDB Container ####################################### mongo: build: ./mongo ports: - - "27017:27017" + - "27017:27017" volumes: - - mongo:/data/db + - mongo:/data/db ### RethinkDB Container ####################################### rethinkdb: build: ./rethinkdb ports: - - "8090:8080" + - "8090:8080" volumes: - - rethinkdb:/data/rethinkdb_data + - rethinkdb:/data/rethinkdb_data ### Redis Container ######################################### redis: build: ./redis volumes: - - redis:/data + - redis:/data ports: - - "6379:6379" + - "6379:6379" ### Aerospike c Container ################################### aerospike: build: ./aerospike volumes_from: - - workspace + - workspace volumes: - - aerospike:/opt/aerospike/data + - aerospike:/opt/aerospike/data ports: - - "3000:3000" - - "3001:3001" - - "3002:3002" - - "3003:3003" + - "3000:3000" + - "3001:3001" + - "3002:3002" + - "3003:3003" ### Memcached Container ##################################### @@ -234,108 +234,108 @@ services: memcached: build: ./memcached volumes: - - memcached:/var/lib/memcached + - memcached:/var/lib/memcached ports: - - "11211:11211" + - "11211:11211" links: - - php-fpm + - php-fpm ### Beanstalkd Container #################################### beanstalkd: build: ./beanstalkd ports: - - "11300:11300" + - "11300:11300" privileged: true links: - - php-fpm + - php-fpm ### RabbitMQ Container ###################################### rabbitmq: build: ./rabbitmq ports: - - "5672:5672" - - "15671:15671" - - "8080:15672" + - "5672:5672" + - "15671:15671" + - "8080:15672" privileged: true environment: - RABBITMQ_DEFAULT_USER: guest - RABBITMQ_DEFAULT_PASS: guest + - RABBITMQ_DEFAULT_USER=guest + - RABBITMQ_DEFAULT_PASS=guest links: - - php-fpm + - php-fpm ### Beanstalkd Console Container ############################ beanstalkd-console: build: ./beanstalkd-console ports: - - "2080:2080" + - "2080:2080" links: - - beanstalkd + - beanstalkd ### Caddy Server Container ################################## caddy: build: ./caddy ports: - - "80:80" - - "443:443" - - "2015:2015" + - "80:80" + - "443:443" + - "2015:2015" volumes_from: - - applications + - applications volumes: - - ./caddy/Caddyfile:/etc/Caddyfile - - ./logs/caddy:/var/log/caddy - - caddy:/root/.caddy + - ./caddy/Caddyfile:/etc/Caddyfile + - ./logs/caddy:/var/log/caddy + - caddy:/root/.caddy links: - - php-fpm + - php-fpm ### phpMyAdmin Container #################################### phpmyadmin: build: ./phpmyadmin environment: - PMA_ARBITRARY: 1 - MYSQL_USER: homestead - MYSQL_PASSWORD: secret - MYSQL_ROOT_PASSWORD: root + - PMA_ARBITRARY=1 + - MYSQL_USER=homestead + - MYSQL_PASSWORD=secret + - MYSQL_ROOT_PASSWORD=root ports: - - "8080:80" + - "8080:80" links: - # for mysql container - - "mysql:db" - # for mariadb container - # - "mariadb:db" + # for mysql container + # - "mysql:db" + # for mariadb container + - "mariadb:db" ### pgAdmin Container ####################################### pgadmin: build: ./pgadmin ports: - - "5050:5050" + - "5050:5050" links: - - postgres + - postgres ### ElasticSearch Container ################################# elasticsearch: build: ./elasticsearch volumes: - - elasticsearch-data:/usr/share/elasticsearch/data - - elasticsearch-plugins:/usr/share/elasticsearch/data + - elasticsearch-data:/usr/share/elasticsearch/data + - elasticsearch-plugins:/usr/share/elasticsearch/data ports: - - "9200:9200" - - "9300:9300" + - "9200:9200" + - "9300:9300" links: - - php-fpm + - php-fpm ### Selenium Container ######################################### selenium: build: ./selenium ports: - - "4444:4444" + - "4444:4444" ### Volumes Setup ########################################### From c1de398acc91b2aeeaa1a51bc9c9b0a243c8e1a4 Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 10 Mar 2017 07:53:33 +0700 Subject: [PATCH 2/8] Change default phpmyadmin environment for mysql --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 621a5a5e..a3a3dbfa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -304,9 +304,9 @@ services: - "8080:80" links: # for mysql container - # - "mysql:db" + - "mysql:db" # for mariadb container - - "mariadb:db" + # - "mariadb:db" ### pgAdmin Container ####################################### From f5e33fb396ff898ba8f37545339e5ed76fcbfb73 Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 17 Mar 2017 13:49:21 +0700 Subject: [PATCH 3/8] Update .gitignore file --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7c6f11b7..05b8eebf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .idea /logs /data +.env +/.project From 9f78b17fd13e5228d3872452ce638a0e5d12c13a Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 17 Mar 2017 13:52:19 +0700 Subject: [PATCH 4/8] Fixing indent_size=2 from 4 --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 87ac0112..9a397cfc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,4 @@ charset = utf-8 [{Dockerfile,docker-compose.yml}] indent_style = space -indent_size = 4 +indent_size = 2 From d17218066064af9b6cadc9a69a56eca61e4fcc03 Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 17 Mar 2017 13:53:04 +0700 Subject: [PATCH 5/8] Add constant PHP_FPM_INSTALL_INTL=false & APPLICATION --- env-example | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 env-example diff --git a/env-example b/env-example new file mode 100644 index 00000000..dfa47aae --- /dev/null +++ b/env-example @@ -0,0 +1,126 @@ +### Application +# Point to your application code, wish should be available at `/var/www` +APPLICATION=../project/ + +### PHP version (Does not apply for HHVM) +# PHP_VERSION=55 +# PHP_VERSION=56 +PHP_VERSION=70 + +### PHP interpreter +# PHP_INTERPRETER=hhvm +PHP_INTERPRETER=php-fpm + +### WORKSPACE Container +WORKSPACE_INSTALL_XDEBUG=false +WORKSPACE_INSTALL_SOAP=false +WORKSPACE_INSTALL_MONGO=false +WORKSPACE_INSTALL_NODE=false +WORKSPACE_INSTALL_YARN=false +WORKSPACE_INSTALL_DRUSH=false +WORKSPACE_INSTALL_AEROSPIKE_EXTENSION=false +WORKSPACE_INSTALL_INSTALL_V8JS_EXTENSION=false +WORKSPACE_COMPOSER_GLOBAL_INSTALL=false +WORKSPACE_INSTALL_WORKSPACE_SSH=false +WORKSPACE_INSTALL_LARAVEL_ENVOY=false +WORKSPACE_INSTALL_DEPLOYER=false +WORKSPACE_INSTALL_LINUXBREW=false +WORKSPACE_INSTALL_MC=false +WORKSPACE_PUID=1000 +WORKSPACE_PGID=1000 +WORKSPACE_NODE_VERSION=stable +WORKSPACE_TIMEZONE=UTC +WORKSPACE_SSH_PORT=2222 + +### PHP_FPM Container +PHP_FPM_DOCKER_FILE=Dockerfile-70 +PHP_FPM_INSTALL_XDEBUG=false +PHP_FPM_INSTALL_MONGO=false +PHP_FPM_INSTALL_SOAP=false +PHP_FPM_INSTALL_ZIP_ARCHIVE=false +PHP_FPM_INSTALL_BCMATH=false +PHP_FPM_INSTALL_PHPREDIS=false +PHP_FPM_INSTALL_MEMCACHED=false +PHP_FPM_INSTALL_OPCACHE=false +PHP_FPM_INSTALL_EXIF=false +PHP_FPM_INSTALL_AEROSPIKE_EXTENSION=false +PHP_FPM_INSTALL_MYSQLI=false +PHP_FPM_INSTALL_TOKENIZER=false +PHP_FPM_INSTALL_INTL=false + +### NGINX Container +NGINX_HOST_HTTP_PORT=80 +NGINX_HOST_HTTPS_PORT=433 +NGINX_HOST_LOG_PATH=./logs/nginx/ +NGINX_SITES_PATH=./nginx/sites/ + +### APACHE Container +APACHE_HOST_HTTP_PORT=80 +APACHE_HOST_HTTPS_PORT=443 +APACHE2_PHP_SOCKET=php-fpm:9000 +APACHE_HOST_LOG_PATH=./logs/apache2 +PHP_SOCKET=php-fpm:9000 + +### MYSQL Container +MYSQL_DATABASE=default +MYSQL_USER=default +MYSQL_PASSWORD=secret +MYSQL_PORT=3306 +MYSQL_ROOT_PASSWORD=root + +### MARIADB Container +MARIADB_DATABASE=default +MARIADB_USER=default +MARIADB_PASSWORD=secret +MARIADB_PORT=3306 + + +### POSTGRES Container +POSTGRES_DB=default +POSTGRES_USER=default +POSTGRES_PASSWORD=secret +POSTGRES_PORT=5432 + +### RABBITMQ Container +RABBITMQ_NODE_HOST_PORT=5672 +RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672 +RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671 +RABBITMQ_DEFAULT_USER=guest +RABBITMQ_DEFAULT_PASS=guest + +### ELASTICSEARCH Container +ELASTICSEARCH_HOST_HTTP_PORT=9200 +ELASTICSEARCH_HOST_TRANSPORT_PORT=9300 + +### MEMCACHED Container +MEMCACHED_HOST_PORT=11211 + +### BEANSTALKD CONSOLE +BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console +BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console +BEANSTALKD_CONSOLE_HOST_PORT=2080 + +### BEANSTALKD Container +BEANSTALKD_HOST_PORT=11300 + +### SELENIUM Container +SELENIUM_PORT=4444 + +### MINIO Container +MINIO_PORT=9000 + +### PHP MY ADMIN Container +# PMA_DB_ENGINE=mariadb +PMA_DB_ENGINE=mysql +PMA_USER=default +PMA_PASSWORD=secret +PMA_ROOT_PASSWORD=secret +PMA_PORT=88 + +### MISC +# Replace with your Docker Host IP (will be appended to /etc/hosts) +DOCKER_HOST_IP=10.0.75.1 +# The Remote Interpreter entry matching name `laradock` +PHP_IDE_CONFIG=serverName=laradock + +### to be continue neo4j mongo rethinkdb redis aerospike pgadmin ... From 8de9eca8ae1c0de103e37e77b5f3160f2dc8717d Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 17 Mar 2017 13:57:54 +0700 Subject: [PATCH 6/8] Fixing the docker-compose.yml --- docker-compose.yml | 512 +++++++++++++++++++++++---------------------- 1 file changed, 263 insertions(+), 249 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e9ce663a..677b3733 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,352 +5,368 @@ services: ### Applications Code Container ############################# applications: - image: tianon/true - volumes: - - ../:/var/www -# - ../sample/:/var/www/sample + image: tianon/true + volumes: + - ${APPLICATION}:/var/www ### Workspace Utilities Container ########################### workspace: - build: - context: ./workspace - args: - - INSTALL_XDEBUG=false - - INSTALL_SOAP=false - - INSTALL_MONGO=false - - INSTALL_NODE=false - - INSTALL_YARN=false - - INSTALL_DRUSH=false - - INSTALL_AEROSPIKE_EXTENSION=false - - INSTALL_V8JS_EXTENSION=false - - COMPOSER_GLOBAL_INSTALL=false - - INSTALL_WORKSPACE_SSH=false - - INSTALL_LARAVEL_ENVOY=false - - INSTALL_DEPLOYER=false - - INSTALL_LINUXBREW=false - - PUID=1000 - - PGID=1000 - - NODE_VERSION=stable - - YARN_VERSION=latest - - TZ=UTC - volumes_from: - - applications - extra_hosts: - # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) - - "dockerhost:10.0.75.1" - ports: - - "2222:22" - tty: true + build: + context: ./workspace + args: + - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG} + - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP} + - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO} + - INSTALL_NODE=${WORKSPACE_INSTALL_NODE} + - INSTALL_YARN=${WORKSPACE_INSTALL_YARN} + - INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH} + - INSTALL_AEROSPIKE_EXTENSION=${WORKSPACE_INSTALL_AEROSPIKE_EXTENSION} + - INSTALL_V8JS_EXTENSION=${WORKSPACE_INSTALL_INSTALL_V8JS_EXTENSION} + - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL} + - INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH} + - INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY} + - INSTALL_DEPLOYER=${WORKSPACE_INSTALL_LARAVEL_ENVOY} + - INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LARAVEL_ENVOY} + - INSTALL_MC=${WORKSPACE_INSTALL_MC} + - PUID=${WORKSPACE_PUID} + - PGID=${WORKSPACE_PGID} + - NODE_VERSION=${WORKSPACE_NODE_VERSION} + - YARN_VERSION=${WORKSPACE_TIMEZONE} + - TZ=${WORKSPACE_TIMEZONE} + volumes_from: + - applications + extra_hosts: + - "dockerhost:${DOCKER_HOST_IP}" + ports: + - "${WORKSPACE_SSH_PORT}:22" + tty: true ### PHP-FPM Container ####################################### php-fpm: - build: - context: ./php-fpm - args: - - INSTALL_XDEBUG=false - - INSTALL_SOAP=false - - INSTALL_MONGO=false - - INSTALL_ZIP_ARCHIVE=false - - INSTALL_BCMATH=false - - INSTALL_PHPREDIS=false - - INSTALL_MEMCACHED=false - - INSTALL_OPCACHE=false - - INSTALL_EXIF=false - - INSTALL_AEROSPIKE_EXTENSION=false - - CODEIGNITER=false - dockerfile: Dockerfile-70 - volumes_from: - - applications - expose: - - "9000" - links: - - workspace - extra_hosts: - # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts) - - "dockerhost:10.0.75.1" - environment: - # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel` - - PHP_IDE_CONFIG=serverName=laravel + build: + context: ./php-fpm + args: + - INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG} + - INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP} + - INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO} + - INSTALL_ZIP_ARCHIVE=${PHP_FPM_INSTALL_ZIP_ARCHIVE} + - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH} + - INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS} + - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED} + - INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE} + - INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF} + - INSTALL_AEROSPIKE_EXTENSION=${PHP_FPM_INSTALL_AEROSPIKE_EXTENSION} + - INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI} + - INSTALL_TOKENIZER=${PHP_FPM_INSTALL_TOKENIZER} + - INSTALL_INTL=${PHP_FPM_INSTALL_INTL} + dockerfile: ${PHP_FPM_DOCKER_FILE} + volumes_from: + - applications + expose: + - "9000" + depends_on: + - workspace + extra_hosts: + - "dockerhost:${DOCKER_HOST_IP}" + environment: + - PHP_IDE_CONFIG=${PHP_IDE_CONFIG} ### Nginx Server Container ################################## nginx: - build: - context: ./nginx - args: - - PHP_UPSTREAM=php-fpm - volumes_from: + build: + context: ./nginx + args: + - PHP_UPSTREAM=php-fpm + volumes_from: - applications - volumes: - - ./logs/nginx/:/var/log/nginx - - ./nginx/sites/:/etc/nginx/sites-available - ports: - - "80:80" - - "443:443" - links: + volumes: + - ${NGINX_HOST_LOG_PATH}:/var/log/nginx + - ${NGINX_SITES_PATH}:/etc/nginx/sites-available + ports: + - "${NGINX_HOST_HTTP_PORT}:80" + - "${NGINX_HOST_HTTPS_PORT}:443" + depends_on: - php-fpm ### Apache Server Container ################################# apache2: - build: - context: ./apache2 - args: - - PHP_SOCKET=php-fpm:9000 - volumes_from: - - applications - volumes: - - ./logs/apache2:/var/log/apache2 - ports: - - "80:80" - - "443:443" - links: - - php-fpm + build: + context: ./apache2 + args: + - PHP_SOCKET=${PHP_SOCKET} + volumes_from: + - applications + volumes: + - ${APACHE_HOST_LOG_PATH}:/var/log/apache2 + ports: + - "${APACHE_HOST_HTTP_PORT}:80" + - "${APACHE_HOST_HTTPS_PORT}:443" + depends_on: + - php-fpm ### HHVM Container ########################################## hhvm: - build: ./hhvm - volumes_from: - - applications - expose: - - "9000" - links: - - workspace + build: ./hhvm + volumes_from: + - applications + expose: + - "9000" + depends_on: + - workspace ### Minio Container ######################################### minio: - build: ./minio - volumes: - - minio:/export - ports: - - "9000:9000" - environment: - MINIO_ACCESS_KEY: access - MINIO_SECRET_KEY: secretkey + build: ./minio + volumes: + - minio:/export + ports: + - "${MINIO_PORT}:9000" + environment: + MINIO_ACCESS_KEY: access + MINIO_SECRET_KEY: secretkey ### MySQL Container ######################################### mysql: - build: - context: ./mysql - args: - - MYSQL_DATABASE=homestead - - MYSQL_USER=homestead - - MYSQL_PASSWORD=secret - - MYSQL_ROOT_PASSWORD=root - volumes: - - mysql:/var/lib/mysql - ports: - - "3306:3306" + build: + context: ./mysql + args: + - MYSQL_DATABASE=${MYSQL_DATABASE} + - MYSQL_USER=${MYSQL_USER} + - MYSQL_PASSWORD=${MYSQL_PASSWORD} + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + volumes: + - mysql:/var/lib/mysql + ports: + - "${MYSQL_PORT}:3306" ### MariaDB Container ####################################### mariadb: - build: ./mariadb - volumes: - - mariadb:/var/lib/mysql - ports: - - "3306:3306" - environment: - - MYSQL_DATABASE=homestead - - MYSQL_USER=homestead - - MYSQL_PASSWORD=secret - - MYSQL_ROOT_PASSWORD=root + build: ./mariadb + volumes: + - mariadb:/var/lib/mysql + ports: + - "${MARIADB_PORT}:3306" + environment: + - MYSQL_DATABASE=${MARIADB_DATABASE} + - MYSQL_USER=${MARIADB_USER} + - MYSQL_PASSWORD=${MARIADB_PASSWORD} + - MYSQL_ROOT_PASSWORD=${MARIADB_PORT} ### PostgreSQL Container #################################### postgres: - build: ./postgres - volumes: - - postgres:/var/lib/postgresql/data - ports: - - "5432:5432" - environment: - - POSTGRES_DB=homestead - - POSTGRES_USER=homestead - - POSTGRES_PASSWORD=secret + build: ./postgres + volumes: + - postgres:/var/lib/postgresql/data + ports: + - "${POSTGRES_PORT}:5432" + environment: + - POSTGRES_DB=${POSTGRES_DB} + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} ### PostgreSQL PostGis Container ############################ postgres-postgis: - build: ./postgres-postgis - volumes: - - postgres:/var/lib/postgresql/data - ports: - - "5432:5432" - environment: - - POSTGRES_DB=homestead - - POSTGRES_USER=homestead - - POSTGRES_PASSWORD=secret + build: ./postgres-postgis + volumes: + - postgres:/var/lib/postgresql/data + ports: + - "${POSTGRES_PORT}:5432" + environment: + - POSTGRES_DB=${POSTGRES_DB} + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} ### Neo4j Container ######################################### neo4j: - build: ./neo4j - ports: - - "7474:7474" - - "1337:1337" - environment: - - NEO4J_AUTH=homestead:secret - volumes: - - neo4j:/var/lib/neo4j/data + build: ./neo4j + ports: + - "7474:7474" + - "1337:1337" + environment: + - NEO4J_AUTH=default:secret + volumes: + - neo4j:/var/lib/neo4j/data ### MongoDB Container ####################################### mongo: - build: ./mongo - ports: - - "27017:27017" - volumes: - - mongo:/data/db + build: ./mongo + ports: + - "27017:27017" + volumes: + - mongo:/data/db ### RethinkDB Container ####################################### rethinkdb: - build: ./rethinkdb - ports: - - "8090:8080" - volumes: - - rethinkdb:/data/rethinkdb_data + build: ./rethinkdb + ports: + - "8090:8080" + volumes: + - rethinkdb:/data/rethinkdb_data ### Redis Container ######################################### redis: - build: ./redis - volumes: - - redis:/data - ports: - - "6379:6379" + build: ./redis + volumes: + - redis:/data + ports: + - "6379:6379" ### Aerospike c Container ################################### aerospike: - build: ./aerospike - volumes_from: - - workspace - volumes: - - aerospike:/opt/aerospike/data - ports: - - "3000:3000" - - "3001:3001" - - "3002:3002" - - "3003:3003" + build: ./aerospike + volumes_from: + - workspace + volumes: + - aerospike:/opt/aerospike/data + ports: + - "3000:3000" + - "3001:3001" + - "3002:3002" + - "3003:3003" ### Memcached Container ##################################### memcached: - build: ./memcached - volumes: - - memcached:/var/lib/memcached - ports: - - "11211:11211" - links: - - php-fpm + build: ./memcached + volumes: + - memcached:/var/lib/memcached + ports: + - "${MEMCACHED_HOST_PORT}:11211" + depends_on: + - php-fpm ### Beanstalkd Container #################################### beanstalkd: - build: ./beanstalkd - ports: - - "11300:11300" - privileged: true - links: - - php-fpm + build: ./beanstalkd + ports: + - "${BEANSTALKD_HOST_PORT}:11300" + privileged: true + depends_on: + - php-fpm ### RabbitMQ Container ###################################### rabbitmq: - build: ./rabbitmq - ports: - - "5672:5672" - - "15671:15671" - - "8080:15672" - privileged: true - environment: - - RABBITMQ_DEFAULT_USER=guest - - RABBITMQ_DEFAULT_PASS=guest - links: - - php-fpm + build: ./rabbitmq + ports: + - "${RABBITMQ_NODE_HOST_PORT}:5672" + - "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672" + - "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671" + privileged: true + environment: + - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER} + - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS} + depends_on: + - php-fpm ### Beanstalkd Console Container ############################ beanstalkd-console: - build: ./beanstalkd-console - ports: - - "2080:2080" - links: - - beanstalkd + build: ./beanstalkd-console + ports: + - "2080:2080" + depends_on: + - beanstalkd ### Caddy Server Container ################################## caddy: - build: ./caddy - ports: - - "80:80" - - "443:443" - - "2015:2015" - volumes_from: - - applications - volumes: - - ./caddy/Caddyfile:/etc/Caddyfile - - ./logs/caddy:/var/log/caddy - - caddy:/root/.caddy - links: - - php-fpm + build: ./caddy + ports: + - "80:80" + - "443:443" + - "2015:2015" + volumes_from: + - applications + volumes: + - ./caddy/Caddyfile:/etc/Caddyfile + - ./logs/caddy:/var/log/caddy + - caddy:/root/.caddy + depends_on: + - php-fpm ### phpMyAdmin Container #################################### phpmyadmin: - build: ./phpmyadmin - environment: - - PMA_ARBITRARY=1 - - MYSQL_USER=homestead - - MYSQL_PASSWORD=secret - - MYSQL_ROOT_PASSWORD=root - ports: - - "8080:80" - links: - # for mysql container - - "mysql:db" - # for mariadb container - # - "mariadb:db" + build: ./phpmyadmin + environment: + - PMA_ARBITRARY=1 + - MYSQL_USER=${PMA_USER} + - MYSQL_PASSWORD=${PMA_PASSWORD} + - MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD} + ports: + - "${PMA_PORT}:80" + depends_on: + - "${PMA_DB_ENGINE}" ### pgAdmin Container ####################################### pgadmin: - build: ./pgadmin - ports: - - "5050:5050" - links: - - postgres + build: ./pgadmin + ports: + - "5050:5050" + depends_on: + - postgres ### ElasticSearch Container ################################# elasticsearch: - build: ./elasticsearch - volumes: - - elasticsearch-data:/usr/share/elasticsearch/data - - elasticsearch-plugins:/usr/share/elasticsearch/data - ports: - - "9200:9200" - - "9300:9300" - links: - - php-fpm + build: ./elasticsearch + volumes: + - elasticsearch-data:/usr/share/elasticsearch/data + - elasticsearch-plugins:/usr/share/elasticsearch/plugins + ports: + - "${ELASTICSEARCH_HOST_HTTP_PORT}:9200" + - "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300" + depends_on: + - php-fpm + +### Certbot Container ################################## + + certbot: + build: + context: ./certbot + volumes: + - ./data/certbot/certs/:/var/certs + - ./certbot/letsencrypt/:/var/www/letsencrypt + environment: + - CN="fake.domain.com" + - EMAIL="fake.email@gmail.com" + +### Mailhog Container ######################################### + + mailhog: + build: ./mailhog + ports: + - "1025:1025" + - "8025:8025" + ### Selenium Container ######################################### selenium: - build: ./selenium - ports: - - "4444:4444" - volumes: - # see https://github.com/SeleniumHQ/docker-selenium#running-the-images - - /dev/shm:/dev/shm + build: ./selenium + ports: + - "${SELENIUM_PORT}:4444" + volumes: + - /dev/shm:/dev/shm ### Volumes Setup ########################################### @@ -383,5 +399,3 @@ volumes: driver: "local" elasticsearch-plugins: driver: "local" - sessions: ## nothing is connected to this (- ./data/sessions:/sessions) - driver: "local" From 5c0933d19a09caff6cc3945e3b31f8085d42efc8 Mon Sep 17 00:00:00 2001 From: ZeroC0D3 Team Date: Fri, 17 Mar 2017 14:36:00 +0700 Subject: [PATCH 7/8] Merge with master branch --- .env | 1 - {docs => DOCUMENTATION}/_settings/config.toml | 14 +- .../_settings/content/contributing/index.md | 94 ++-- .../_settings/content/documentation/index.md | 39 +- .../content/getting-started/index.md | 201 +++++++++ .../_settings/content/help/index.md | 4 +- .../_settings/content/index.md | 0 .../_settings/content/introduction/index.md | 41 +- .../_settings/content/license/index.md | 0 .../content/related-projects/index.md | 6 +- .../_settings/static/.gitkeep | 0 DOCUMENTATION/_settings/static/CNAME | 1 + .../themes/hugo-material-docs/CHANGELOG.md | 0 .../themes/hugo-material-docs/LICENSE.md | 0 .../themes/hugo-material-docs/README.md | 0 .../hugo-material-docs/archetypes/default.md | 0 .../hugo-material-docs/images/screenshot.png | Bin .../themes/hugo-material-docs/images/tn.png | Bin .../hugo-material-docs/layouts/404.html | 0 .../layouts/_default/__list.html | 0 .../layouts/_default/single.html | 0 .../hugo-material-docs/layouts/index.html | 4 +- .../layouts/partials/drawer.html | 50 +-- .../layouts/partials/footer.html | 0 .../layouts/partials/footer_js.html | 0 .../layouts/partials/head.html | 0 .../layouts/partials/header.html | 7 +- .../layouts/partials/nav.html | 0 .../layouts/partials/nav_link.html | 0 .../layouts/shortcodes/note.html | 0 .../layouts/shortcodes/warning.html | 0 .../hugo-material-docs/static/fonts/icon.eot | Bin .../hugo-material-docs/static/fonts/icon.svg | 0 .../hugo-material-docs/static/fonts/icon.ttf | Bin .../hugo-material-docs/static/fonts/icon.woff | Bin .../static/images/colors.png | Bin .../static/images/favicon.ico | Bin .../hugo-material-docs/static/images/logo.png | Bin .../static/images/screen.png | Bin .../static/javascripts/application.js | 0 .../static/javascripts/modernizr.js | 0 .../static/stylesheets/application.css | 0 .../stylesheets/highlight/highlight.css | 0 .../static/stylesheets/palettes.css | 0 .../static/stylesheets/temporary.css | 0 .../themes/hugo-material-docs/theme.toml | 0 apache2/Dockerfile | 4 +- certbot/Dockerfile | 8 + .../static => certbot/letsencrypt}/.gitkeep | 0 certbot/letsencrypt/.well-known/.gitkeep | 0 certbot/run-certbot.sh | 6 + .../content/getting-started/index.md | 181 -------- .../exampleSite/config.toml | 78 ---- .../content/adding-content/index.md | 61 --- .../content/getting-started/index.md | 240 ---------- .../exampleSite/content/index.md | 55 --- .../exampleSite/content/license/index.md | 27 -- .../exampleSite/content/roadmap/index.md | 27 -- docs/contributing/index.html | 151 +++---- docs/contributing/index.xml | 90 ++-- docs/documentation/index.html | 134 +++--- docs/documentation/index.xml | 73 ++- docs/getting-started/index.html | 210 +++++---- docs/getting-started/index.xml | 149 +++--- docs/help/index.html | 69 ++- docs/help/index.xml | 8 +- docs/index.html | 424 ++++++++++-------- docs/index.xml | 355 +++++++++------ docs/introduction/index.html | 106 ++--- docs/introduction/index.xml | 45 +- docs/license/index.html | 65 +-- docs/license/index.xml | 4 +- docs/related-projects/index.html | 71 ++- docs/related-projects/index.xml | 10 +- mailhog/Dockerfile | 7 + mysql/Dockerfile | 4 +- nginx/nginx.conf | 6 +- nginx/sites/.gitignore | 2 - nginx/sites/default.conf | 7 +- .../{sample.conf.example => project-1.conf} | 11 +- nginx/sites/project-2.conf | 35 ++ php-fpm/Dockerfile-56 | 17 +- php-fpm/Dockerfile-70 | 44 +- php-fpm/Dockerfile-71 | 160 +++++++ php-fpm/opcache.ini | 3 +- workspace/Dockerfile-71 | 260 +++++++++++ xdebugPhpFpm | 2 +- 87 files changed, 1966 insertions(+), 1705 deletions(-) delete mode 100644 .env rename {docs => DOCUMENTATION}/_settings/config.toml (88%) rename {docs => DOCUMENTATION}/_settings/content/contributing/index.md (56%) rename {docs => DOCUMENTATION}/_settings/content/documentation/index.md (96%) create mode 100644 DOCUMENTATION/_settings/content/getting-started/index.md rename {docs => DOCUMENTATION}/_settings/content/help/index.md (65%) rename {docs => DOCUMENTATION}/_settings/content/index.md (100%) rename {docs => DOCUMENTATION}/_settings/content/introduction/index.md (79%) rename {docs => DOCUMENTATION}/_settings/content/license/index.md (100%) rename {docs => DOCUMENTATION}/_settings/content/related-projects/index.md (83%) rename {docs => DOCUMENTATION}/_settings/static/.gitkeep (100%) create mode 100644 DOCUMENTATION/_settings/static/CNAME rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/CHANGELOG.md (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/LICENSE.md (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/README.md (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/archetypes/default.md (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/images/screenshot.png (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/images/tn.png (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/404.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/_default/__list.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/_default/single.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/index.html (92%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/drawer.html (60%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/footer.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/footer_js.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/head.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/header.html (82%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/nav.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/partials/nav_link.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/shortcodes/note.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/layouts/shortcodes/warning.html (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/fonts/icon.eot (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/fonts/icon.svg (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/fonts/icon.ttf (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/fonts/icon.woff (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/images/colors.png (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/images/favicon.ico (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/images/logo.png (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/images/screen.png (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/javascripts/application.js (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/javascripts/modernizr.js (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/stylesheets/application.css (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/stylesheets/highlight/highlight.css (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/stylesheets/palettes.css (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/static/stylesheets/temporary.css (100%) rename {docs => DOCUMENTATION}/_settings/themes/hugo-material-docs/theme.toml (100%) create mode 100644 certbot/Dockerfile rename {docs/_settings/themes/hugo-material-docs/exampleSite/static => certbot/letsencrypt}/.gitkeep (100%) create mode 100644 certbot/letsencrypt/.well-known/.gitkeep create mode 100644 certbot/run-certbot.sh delete mode 100644 docs/_settings/content/getting-started/index.md delete mode 100755 docs/_settings/themes/hugo-material-docs/exampleSite/config.toml delete mode 100644 docs/_settings/themes/hugo-material-docs/exampleSite/content/adding-content/index.md delete mode 100644 docs/_settings/themes/hugo-material-docs/exampleSite/content/getting-started/index.md delete mode 100644 docs/_settings/themes/hugo-material-docs/exampleSite/content/index.md delete mode 100644 docs/_settings/themes/hugo-material-docs/exampleSite/content/license/index.md delete mode 100644 docs/_settings/themes/hugo-material-docs/exampleSite/content/roadmap/index.md create mode 100644 mailhog/Dockerfile delete mode 100644 nginx/sites/.gitignore rename nginx/sites/{sample.conf.example => project-1.conf} (64%) create mode 100644 nginx/sites/project-2.conf create mode 100644 php-fpm/Dockerfile-71 create mode 100644 workspace/Dockerfile-71 diff --git a/.env b/.env deleted file mode 100644 index accd09a0..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -COMPOSE_CONVERT_WINDOWS_PATHS=1 diff --git a/docs/_settings/config.toml b/DOCUMENTATION/_settings/config.toml similarity index 88% rename from docs/_settings/config.toml rename to DOCUMENTATION/_settings/config.toml index 67fda545..90b5b535 100644 --- a/docs/_settings/config.toml +++ b/DOCUMENTATION/_settings/config.toml @@ -1,7 +1,7 @@ baseurl = "http://laradock.io/" languageCode = "en-us" -publishDir = "../" -title = "Laradock Docs" +publishDir = "../../docs" +title = "Laradock" theme = "hugo-material-docs" metadataformat = "yaml" canonifyurls = true @@ -15,8 +15,8 @@ googleAnalytics = "UA-37514928-9" copyright = "" # Repository - provider = "GitHub" - repo_url = "https://github.com/laradock/laradock" + provider = "" + repo_url = "" version = "" logo = "" @@ -32,8 +32,8 @@ googleAnalytics = "UA-37514928-9" highlight_css = "" [params.palette] - primary = "purple" - accent = "deep-purple" + primary = "deep-purple" + accent = "purple" [params.font] text = "Doctarine" @@ -41,7 +41,7 @@ googleAnalytics = "UA-37514928-9" [social] twitter = "" - github = "laradock" + github = "laradock/laradock" email = "" # ------- MENU START ----------------------------------------- diff --git a/docs/_settings/content/contributing/index.md b/DOCUMENTATION/_settings/content/contributing/index.md similarity index 56% rename from docs/_settings/content/contributing/index.md rename to DOCUMENTATION/_settings/content/contributing/index.md index 7e8c8df2..f3b67b75 100644 --- a/docs/_settings/content/contributing/index.md +++ b/DOCUMENTATION/_settings/content/contributing/index.md @@ -7,41 +7,53 @@ weight: 6 Your contribution is more than welcome. -## Got a Question or Problem? +## I have a Question/Problem -If you have questions about how to use LaraDock, please direct your questions to the discussion on [Gitter](https://gitter.im/LaraDock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Question). +If you have questions about how to use Laradock, please direct your questions to the discussion on [Gitter](https://gitter.im/Laradock/laradock). If you believe your question could help others, then consider opening an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as `Question`) And you can still seek help on Gitter for it. -## Found an Issue? -If you find a bug in the source code or a mistake in the documentation, you can help us by -submitting an [Issue](https://github.com/laradock/laradock/issues). Even better you can submit a Pull Request with a fix. +## I found an Issue +If have an issue or you found a typo in the documentation, you can help us by +opnening an [Issue](https://github.com/laradock/laradock/issues). -## Want a Feature? -You can request a new feature by submitting an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as Feature Suggestion). If you would like to implement a new feature then consider submitting a Pull Request. +**Steps to do before opening an Issue:** + +1. Before you submit your issue search the archive, maybe your question was already answered couple hours ago (search in the closed Issues as well). + +2. Decide if the Issue belongs to this project or to [Docker](https://github.com/docker) itself! or even the tool you are using such as Nginx or MongoDB... + +If your issue appears to be a bug, and hasn't been reported, then open a new issue. + +*This Help us to maximize the effort we can spend fixing issues and adding new +features, by not reporting duplicate issues.* -## Edit the documentation +## I want a Feature +You can request a new feature by submitting an [Issue](https://github.com/laradock/laradock/issues) (it will be labeled as `Feature Suggestion`). If you would like to implement a new feature then consider submitting a Pull Request yourself. + + + + + +## I want to update the Documentation (Site) Laradock uses [Hugo](https://gohugo.io/) as website generator tool, with the [Material Docs theme](http://themes.gohugo.io/theme/material-docs/). You might need to check their docs quickly. -1. Install [Hugo](https://gohugo.io/) on your machine. -2. Clone laradock. -3. Go to `/docs`. -4. Delete everything except the `_settings` folder & the `CNAME` file. -5. Open `docs/_settings` from your terminal and run `hugo serve` to host the website locally. -6. Open the `docs/_settings/content` and search for the folder of the section you want to edit. -7. In each secion there's an `index.md` file, that's the file you need to edit. -8. To edit the sidebar (in case you are adding new section) go to `docs/_settings/config.toml` and add the section there. -9. After done editing, run the this command `hugo` to generate the updated site inside the `docs` folder. -10. Go back to the project root directory, commit and push.. +1. Install [Hugo](https://gohugo.io/) on your machine (easy thing). +2. Open the `DOCUMENTATION/_settings/content` and search for the markdown file you want to edit (every folder represents a section in the menu). +3. Delete the `/docs` folder from the root. +4. When you finish editing, run the `hugo` command to generate the HTML docs (in the `/docs`). + +### To Host the website locally +Go to `DOCUMENTATION/_settings` in your terminal and run `hugo serve` to host the website locally. + +### Edit the sidebar +To add a new section to the sidebar or edit existing one, you need to edit this file `DOCUMENTATION/_settings/config.toml`. - -## Coding Guidelines - -## Support new Software +## How to support new Software (Add new Container) * Create folder with the software name. @@ -53,30 +65,23 @@ Laradock uses [Hugo](https://gohugo.io/) as website generator tool, with the [Ma * Make sure you follow our commenting style. -* Add the software in the `Readme`. +* Add the software in the `Documentation`. -## Edit existing Software +## Edit existing Software (Edit a Container) * Open the software (container) folder. * Edit the files you want to update. * **Note:** If you want to edit the base image of the `Workspace` or the `php-fpm` Containers, -you need to edit their Docker-files from their GitHub repositories. For more info read their Dockerfiles comment on the LaraDock repository. +you need to edit their Docker-files from their GitHub repositories. For more info read their Dockerfiles comment on the Laradock repository. -* Make sure to update the `Readme` in case you made any changes. - -## Issue/PR Submission Guidelines - -## Submitting an Issue -Before you submit your issue search the archive, maybe your question was already answered. - -If your issue appears to be a bug, and hasn't been reported, open a new issue. -Help us to maximize the effort we can spend fixing issues and adding new -features, by not reporting duplicate issues. +* Make sure to update the `Documentation` in case you made any changes. -## Before Submitting a Pull Request (PR) +## Pull Request + +### 1. Before Submitting a Pull Request (PR) Always Test everything and make sure its working: @@ -86,13 +91,13 @@ Always Test everything and make sure its working: - Test running the container with some other containers in real app and see of everything is working fine. - Now edit the container (edit section by section and test rebuilding the container after every edited section) - Testing building the container (docker-compose build container-name) with no errors. - - Test it in real App. + - Test it in a real App if possible. -## Submitting a PR +### 2. Submitting a PR Consider the following guidelines: -* Search [GitHub](https://github.com/laradock/laradock/pulls) for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort. +* Search [GitHub](https://github.com/laradock/laradock/pulls) for an open or closed Pull Request that relates to your submission. You don't want to duplicate efforts. * Make your changes in a new git branch: @@ -123,14 +128,9 @@ git push origin my-fix-branch -f *WARNING. Squashing or reverting commits and forced push thereafter may remove GitHub comments on code that were previously made by you and others in your commits.* +### 3. After your PR is merged - - - -## After your PR is merged - -After your pull request is merged, you can safely delete your branch and pull the changes -from the main (upstream) repository: +After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository: * Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows: @@ -161,4 +161,4 @@ from the main (upstream) repository:
-## Happy Coding :) +#### Happy Coding :) diff --git a/docs/_settings/content/documentation/index.md b/DOCUMENTATION/_settings/content/documentation/index.md similarity index 96% rename from docs/_settings/content/documentation/index.md rename to DOCUMENTATION/_settings/content/documentation/index.md index f8785f81..7d4addc9 100644 --- a/docs/_settings/content/documentation/index.md +++ b/DOCUMENTATION/_settings/content/documentation/index.md @@ -176,6 +176,11 @@ However to view the logs of all the other containers (MySQL, PHP-FPM,...) you ca docker logs {container-name} ``` +More [options](https://docs.docker.com/compose/reference/logs/) + +```bash +docker logs -f {container-name} +``` @@ -329,7 +334,7 @@ For information on how to configure xDebug with your IDE and work it out, check By installing xDebug, you are enabling it to run on startup by default. -To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the LaraDock root folder, (at the same prompt where you run docker-compose): +To control the behavior of xDebug (in the `php-fpm` Container), you can run the following commands from the Laradock root folder, (at the same prompt where you run docker-compose): - Stop xDebug from running by default: `./xdebugPhpFpm stop`. - Start xDebug by default: `./xdebugPhpFpm start`. @@ -381,10 +386,10 @@ It should be like this:
- -## Prepare LaraDock for Production + +## Prepare Laradock for Production -It's recommended for production to create a custom `docker-compose.yml` file. For that reason, LaraDock is shipped with `production-docker-compose.yml` which should contain only the containers you are planning to run on production (usage example: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`). +It's recommended for production to create a custom `docker-compose.yml` file. For that reason, Laradock is shipped with `production-docker-compose.yml` which should contain only the containers you are planning to run on production (usage example: `docker-compose -f production-docker-compose.yml up -d nginx mysql redis ...`). Note: The Database (MySQL/MariaDB/...) ports should not be forwarded on production, because Docker will automatically publish the port on the host, which is quite insecure, unless specifically told not to. So make sure to remove these lines: @@ -439,7 +444,7 @@ For more about the Laravel installation click [here](https://laravel.com/docs/ma 3 - Edit `docker-compose.yml` to Map the new application path: -By default, LaraDock assumes the Laravel application is living in the parent directory of the laradock folder. +By default, Laradock assumes the Laravel application is living in the parent directory of the laradock folder. Since the new Laravel application is in the `my-cool-app` folder, we need to replace `../:/var/www` with `../my-cool-app/:/var/www`, as follow: @@ -456,7 +461,7 @@ Since the new Laravel application is in the `my-cool-app` folder, we need to rep cd my-cool-app ``` -5 - Go back to the LaraDock installation steps to see how to edit the `.env` file. +5 - Go back to the Laradock installation steps to see how to edit the `.env` file. @@ -581,7 +586,7 @@ composer require predis/predis:^1.0 5 - You can manually test it from Laravel with this code: ```php -\Cache::store('redis')->put('LaraDock', 'Awesome', 10); +\Cache::store('redis')->put('Laradock', 'Awesome', 10); ``` @@ -893,7 +898,7 @@ docker-compose up -d minio ## Install CodeIgniter -To install CodeIgniter 3 on LaraDock all you have to do is the following simple steps: +To install CodeIgniter 3 on Laradock all you have to do is the following simple steps: 1 - Open the `docker-compose.yml` file. @@ -1198,7 +1203,7 @@ It should be like this:
## Common Terminal Aliases -When you start your docker container, LaraDock will copy the `aliases.sh` file located in the `laradock/workspace` directory and add sourcing to the container `~/.bashrc` file. +When you start your docker container, Laradock will copy the `aliases.sh` file located in the `laradock/workspace` directory and add sourcing to the container `~/.bashrc` file. You are free to modify the `aliases.sh` as you see fit, adding your own aliases (or function macros) to suit your requirements. @@ -1292,10 +1297,10 @@ Remote debug Laravel web and phpunit tests.
- -## Keep track of your LaraDock changes + +## Keep track of your Laradock changes -1. Fork the LaraDock repository. +1. Fork the Laradock repository. 2. Use that fork as a submodule. 3. Commit all your changes to your fork. 4. Pull new stuff from the main repository from time to time. @@ -1308,14 +1313,14 @@ Remote debug Laravel web and phpunit tests.
-## Upgrading LaraDock +## Upgrading Laradock -Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requires upgrading LaraDock from v3.* to v4.*: +Moving from Docker Toolbox (VirtualBox) to Docker Native (for Mac/Windows). Requires upgrading Laradock from v3.* to v4.*: 1. Stop the docker VM `docker-machine stop {default}` 2. Install Docker for [Mac](https://docs.docker.com/docker-for-mac/) or [Windows](https://docs.docker.com/docker-for-windows/). -3. Upgrade LaraDock to `v4.*.*` (`git pull origin master`) -4. Use LaraDock as you used to do: `docker-compose up -d nginx mysql`. +3. Upgrade Laradock to `v4.*.*` (`git pull origin master`) +4. Use Laradock as you used to do: `docker-compose up -d nginx mysql`. **Note:** If you face any problem with the last step above: rebuild all your containers `docker-compose build --no-cache` @@ -1454,4 +1459,4 @@ This error sometimes happens because your Laravel application isn't running on t 1. Check your running Laravel application IP by dumping `Request::ip()` variable using `dd(Request::ip())` anywhere on your application. The result is the IP of your Laravel container. 2. Change the `DB_HOST` variable on env with the IP that you received from previous step. * Option B - 1. Change the `DB_HOST` value to the same name as the MySQL docker container. The LaraDock docker-compose file currently has this as `mysql` + 1. Change the `DB_HOST` value to the same name as the MySQL docker container. The Laradock docker-compose file currently has this as `mysql` diff --git a/DOCUMENTATION/_settings/content/getting-started/index.md b/DOCUMENTATION/_settings/content/getting-started/index.md new file mode 100644 index 00000000..bee1d369 --- /dev/null +++ b/DOCUMENTATION/_settings/content/getting-started/index.md @@ -0,0 +1,201 @@ +--- +title: Getting Started +type: index +weight: 2 +--- + +## Requirements + +- [Git](https://git-scm.com/downloads) +- [Docker](https://www.docker.com/products/docker/) `>= 1.12` + + + + + + + +## Installation + +Choose the setup the best suits your needs. + +- [A) Setup for Single Project](#A) + - [A.1) Already have a PHP project](#A1) + - [A.2) Don't have a PHP project yet](#A2) +- [B) Setup for Multiple Projects](#B) + + + +### A) Setup for Single Project +> (Follow these steps if you want a separate Docker environment for each project) + + + +### A.1) Already have a PHP project: +> (Follow these steps if you already have a PHP project, and all you need is an environment to run it) + +1 - Clone laradock on your project root directory: + +```bash +git submodule add https://github.com/Laradock/laradock.git +``` + +**Notes:** + +- If you are not using Git yet for your project, you can use `git clone` instead of `git submodule `. + +- Note 2: To keep track of your Laradock changes, between your projects and also keep Laradock updated. [Check this](#keep-tracking-Laradock) + + +Your folder structure should look like this: + +``` ++ project-a + + laradock-a ++ project-b + + laradock-b +``` + +(It's important to rename the folders differently in each project) + + +### A.2) Don't have a PHP project yet: +> (Follow these steps if you don't have a PHP project yet, and you need an environment to create the project) + +1 - Clone this repository anywhere on your machine: + +```bash +git clone https://github.com/laradock/laradock.git +``` + +Your folder structure should look like this: + +``` ++ laradock ++ project-z +``` + +2 - Edit your web server sites configuration. + +**In case of NGINX:** open `nginx/sites/default.conf` and change the `root` from `/var/www/public` to `/var/www/{my-project-folder-name}/public`. + +*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.* + +**In case of Apache:** :P + +3 - Run your `docker-compose up` command and you're ready to go. + +*Note: if you already had your containers up, you might need to take them down first and rebuild them for the changes to take effect.* + + + +### B) Setup for Multiple Projects: +> (Follow these steps if you want a single Docker environment for all your project) + +1 - Clone this repository anywhere on your machine (similar to [Steps A.2. from above](#A2)): + +```bash +git clone https://github.com/laradock/laradock.git +``` + +Your folder structure should look like this: + +``` ++ laradock ++ project-1 ++ project-2 +``` + +2 - Go to `nginx/sites` and create config files to point to different project directory when visiting different domains. + +Laradock by default includes `project-1.conf` and `project-2.conf` as working samples. + +3 - change the default names `project-n`: + +You can rename the config files, project folders and domains as you like, just make sure the `root` in the config files, is pointing to the correct project folder name. + +4 - Add the domains to the **hosts** files. + +``` +127.0.0.1 project-1.dev +127.0.0.1 project-2.dev +``` + +5 - Visit `http://project-1.dev/` and `http://project-2.dev/`. + + + + + + + + + +## Usage + +**Read Before starting:** + +If you are using **Docker Toolbox** (VM), do one of the following: + +- Upgrade to Docker [Native](https://www.docker.com/products/docker) for Mac/Windows (Recommended). Check out [Upgrading Laradock](#upgrading-laradock) +- Use Laradock v3.* (Visit the `Laradock-ToolBox` [Branch](https://github.com/laradock/laradock/tree/Laradock-ToolBox)). + +
+ +>**Warning:** If you used an older version of Laradock it's highly recommended to rebuild the containers you need to use [see how you rebuild a container](#Build-Re-build-Containers) in order to prevent as much errors as possible. + +
+ +1 - Run Containers: *(Make sure you are in the `laradock` folder before running the `docker-compose` commands).* + + +**Example:** Running NGINX and MySQL: + +```bash +docker-compose up -d nginx mysql +``` + +**Note**: The `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command. If you couldn't find them running then you need specify them as follow: `docker-compose up -d nginx php-fpm mysql workspace`. + + +You can select your own combination of Containers form the list below: + +`nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `beanstalkd-console`, `workspace`, `phpmyadmin`, `aerospike`, `pgadmin`, `elasticsearch`, `rethinkdb`, `postgres-postgis`, `certbot`, `mailhog`, `minio` and more...! + +*(Please note that sometimes we forget to update the docs, so check the `docker-compose.yml` file to see an updated list of all available containers).* + + +
+2 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...). + +```bash +docker-compose exec workspace bash +``` + +Alternatively, for Windows PowerShell users: execute the following command to enter any running container: + +```bash +docker exec -it {workspace-container-id} bash +``` + +**Note:** You can add `--user=laradock` to have files created as your host's user. Example: + +```shell +docker-compose exec --user=laradock workspace bash +``` + +*You can change the PUID (User id) and PGID (group id) variables from the `docker-compose.yml` or the `.env`)* + +
+3 - Edit your project configurations. + +Open your `.env` file and set the `DB_HOST` to `mysql`: + +```env +DB_HOST=mysql +``` + +*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).* + +
+4 - Open your browser and visit your localhost address `http://localhost/`. diff --git a/docs/_settings/content/help/index.md b/DOCUMENTATION/_settings/content/help/index.md similarity index 65% rename from docs/_settings/content/help/index.md rename to DOCUMENTATION/_settings/content/help/index.md index db758fd0..3f2342de 100644 --- a/docs/_settings/content/help/index.md +++ b/DOCUMENTATION/_settings/content/help/index.md @@ -4,6 +4,6 @@ type: index weight: 5 --- -Join the chat room on [Gitter](https://gitter.im/LaraDock/laradock) and get help and support from the community. +Join the chat room on [Gitter](https://gitter.im/Laradock/laradock) and get help and support from the community. -You can as well can open an [issue](https://github.com/laradock/laradock/issues) on Github (will be labeled as Question) and discuss it with people on [Gitter](https://gitter.im/LaraDock/laradock). +You can as well can open an [issue](https://github.com/laradock/laradock/issues) on Github (will be labeled as Question) and discuss it with people on [Gitter](https://gitter.im/Laradock/laradock). diff --git a/docs/_settings/content/index.md b/DOCUMENTATION/_settings/content/index.md similarity index 100% rename from docs/_settings/content/index.md rename to DOCUMENTATION/_settings/content/index.md diff --git a/docs/_settings/content/introduction/index.md b/DOCUMENTATION/_settings/content/introduction/index.md similarity index 79% rename from docs/_settings/content/introduction/index.md rename to DOCUMENTATION/_settings/content/introduction/index.md index 463bf0b1..44ae7a70 100644 --- a/docs/_settings/content/introduction/index.md +++ b/DOCUMENTATION/_settings/content/introduction/index.md @@ -4,11 +4,11 @@ type: index weight: 1 --- -LaraDock strives to make the PHP development experience easier and faster. +Laradock strives to make the PHP development experience easier and faster. It contains pre-packaged Docker Images that provides you a wonderful *development* environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines. -LaraDock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal...). +Laradock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal...). @@ -17,19 +17,25 @@ LaraDock is configured to run Laravel Apps by default, and it can be modified to Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL`, `Redis` and `beanstalkd`: -1 - Clone LaraDock inside your PHP project: +1 - Clone Laradock inside your PHP project: ```shell git clone https://github.com/Laradock/laradock.git ``` -2 - Enter the laradock folder and run this command: +2 - Enter the laradock folder and rename `env-example` to `.env`. + +```shell +cp env-example .env +``` + +3 - Run your containers: ```shell docker-compose up -d nginx mysql redis beanstalkd ``` -3 - Open your `.env` file and set the following: +3 - Open your project's `.env` file and set the following: ```shell DB_HOST=mysql @@ -76,17 +82,17 @@ Most importantly Docker can run on Development and on Production (same environme -## LaraDock VS Homestead (For Laravel Developers) +## Laradock VS Homestead (For Laravel Developers) -> LaraDock It's like Laravel Homestead but for Docker instead of Vagrant. +> Laradock It's like Laravel Homestead but for Docker instead of Vagrant. -LaraDock and [Homestead](https://laravel.com/docs/master/homestead) both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System). +Laradock and [Homestead](https://laravel.com/docs/master/homestead) both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System). - Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine. -- LaraDock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers. +- Laradock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers. -Running a virtual container is much faster than running a full virtual Machine. Thus **LaraDock is much faster than Homestead**. +Running a virtual container is much faster than running a full virtual Machine. Thus **Laradock is much faster than Homestead**. @@ -100,10 +106,10 @@ Running a virtual container is much faster than running a full virtual Machine. What's better than a **Demo Video**: -- LaraDock [v4.*](https://www.youtube.com/watch?v=TQii1jDa96Y) -- LaraDock [v2.*](https://www.youtube.com/watch?v=-DamFMczwDA) -- LaraDock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI) -- LaraDock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80) +- Laradock [v4.*](https://www.youtube.com/watch?v=TQii1jDa96Y) +- Laradock [v2.*](https://www.youtube.com/watch?v=-DamFMczwDA) +- Laradock [v0.3](https://www.youtube.com/watch?v=jGkyO6Is_aI) +- Laradock [v0.1](https://www.youtube.com/watch?v=3YQsHe6oF80) @@ -139,11 +145,12 @@ What's better than a **Demo Video**: - **Database Engines:** - MySQL - - PostgreSQL - MariaDB - MongoDB - Neo4j - RethinkDB + - PostgreSQL + - Postgres Postgis - **Cache Engines:** - Redis - Memcached @@ -165,6 +172,8 @@ What's better than a **Demo Video**: - PgAdmin - ElasticSearch - Selenium + - Certbot + - Mailhog - Minio - Workspace - PHP7-CLI @@ -194,4 +203,4 @@ What's better than a **Demo Video**: You are welcome to join our chat room on Gitter. -[![Gitter](https://badges.gitter.im/LaraDock/laradock.svg)](https://gitter.im/LaraDock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) +[![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) diff --git a/docs/_settings/content/license/index.md b/DOCUMENTATION/_settings/content/license/index.md similarity index 100% rename from docs/_settings/content/license/index.md rename to DOCUMENTATION/_settings/content/license/index.md diff --git a/docs/_settings/content/related-projects/index.md b/DOCUMENTATION/_settings/content/related-projects/index.md similarity index 83% rename from docs/_settings/content/related-projects/index.md rename to DOCUMENTATION/_settings/content/related-projects/index.md index f4b4a42c..b5c30959 100644 --- a/docs/_settings/content/related-projects/index.md +++ b/DOCUMENTATION/_settings/content/related-projects/index.md @@ -4,10 +4,10 @@ type: index weight: 4 --- -LaraDock related projects: +Laradock related projects: -* [LaraDock CLI](https://github.com/lorinlee/laradock-cli) by [LorinLee](https://github.com/lorinlee) -* [LaraDock Env](https://github.com/bagart/laradock_env) by [BAGArt](https://github.com/bagart) +* [Laradock CLI](https://github.com/lorinlee/laradock-cli) by [LorinLee](https://github.com/lorinlee) +* [Laradock Env](https://github.com/bagart/laradock_env) by [BAGArt](https://github.com/bagart) * [Klaradock](https://github.com/poyhsiao/Klaradock) by [Kim Hsiao](https://github.com/poyhsiao) * [Ansible Laradock Kubernetes](https://github.com/sifat-rahim/ansible-laradock-kubernetes) by [Sifat Rahim](https://github.com/sifat-rahim) These Docker Compose projects have piqued our interest: diff --git a/docs/_settings/static/.gitkeep b/DOCUMENTATION/_settings/static/.gitkeep similarity index 100% rename from docs/_settings/static/.gitkeep rename to DOCUMENTATION/_settings/static/.gitkeep diff --git a/DOCUMENTATION/_settings/static/CNAME b/DOCUMENTATION/_settings/static/CNAME new file mode 100644 index 00000000..df75fb6b --- /dev/null +++ b/DOCUMENTATION/_settings/static/CNAME @@ -0,0 +1 @@ +laradock.io \ No newline at end of file diff --git a/docs/_settings/themes/hugo-material-docs/CHANGELOG.md b/DOCUMENTATION/_settings/themes/hugo-material-docs/CHANGELOG.md similarity index 100% rename from docs/_settings/themes/hugo-material-docs/CHANGELOG.md rename to DOCUMENTATION/_settings/themes/hugo-material-docs/CHANGELOG.md diff --git a/docs/_settings/themes/hugo-material-docs/LICENSE.md b/DOCUMENTATION/_settings/themes/hugo-material-docs/LICENSE.md similarity index 100% rename from docs/_settings/themes/hugo-material-docs/LICENSE.md rename to DOCUMENTATION/_settings/themes/hugo-material-docs/LICENSE.md diff --git a/docs/_settings/themes/hugo-material-docs/README.md b/DOCUMENTATION/_settings/themes/hugo-material-docs/README.md similarity index 100% rename from docs/_settings/themes/hugo-material-docs/README.md rename to DOCUMENTATION/_settings/themes/hugo-material-docs/README.md diff --git a/docs/_settings/themes/hugo-material-docs/archetypes/default.md b/DOCUMENTATION/_settings/themes/hugo-material-docs/archetypes/default.md similarity index 100% rename from docs/_settings/themes/hugo-material-docs/archetypes/default.md rename to DOCUMENTATION/_settings/themes/hugo-material-docs/archetypes/default.md diff --git a/docs/_settings/themes/hugo-material-docs/images/screenshot.png b/DOCUMENTATION/_settings/themes/hugo-material-docs/images/screenshot.png similarity index 100% rename from docs/_settings/themes/hugo-material-docs/images/screenshot.png rename to DOCUMENTATION/_settings/themes/hugo-material-docs/images/screenshot.png diff --git a/docs/_settings/themes/hugo-material-docs/images/tn.png b/DOCUMENTATION/_settings/themes/hugo-material-docs/images/tn.png similarity index 100% rename from docs/_settings/themes/hugo-material-docs/images/tn.png rename to DOCUMENTATION/_settings/themes/hugo-material-docs/images/tn.png diff --git a/docs/_settings/themes/hugo-material-docs/layouts/404.html b/DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/404.html similarity index 100% rename from docs/_settings/themes/hugo-material-docs/layouts/404.html rename to DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/404.html diff --git a/docs/_settings/themes/hugo-material-docs/layouts/_default/__list.html b/DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/_default/__list.html similarity index 100% rename from docs/_settings/themes/hugo-material-docs/layouts/_default/__list.html rename to DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/_default/__list.html diff --git a/docs/_settings/themes/hugo-material-docs/layouts/_default/single.html b/DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/_default/single.html similarity index 100% rename from docs/_settings/themes/hugo-material-docs/layouts/_default/single.html rename to DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/_default/single.html diff --git a/docs/_settings/themes/hugo-material-docs/layouts/index.html b/DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/index.html similarity index 92% rename from docs/_settings/themes/hugo-material-docs/layouts/index.html rename to DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/index.html index cabbd580..703e7e8c 100644 --- a/docs/_settings/themes/hugo-material-docs/layouts/index.html +++ b/DOCUMENTATION/_settings/themes/hugo-material-docs/layouts/index.html @@ -37,7 +37,9 @@ Documentation built with Hugo using the - Material theme. + Material theme, + by + Mahmoud Zalt.