Merge branch 'master' into master
14
.devcontainer/devcontainer.example.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "Laradock",
|
||||||
|
"dockerComposeFile": "../docker-compose.yml",
|
||||||
|
"remoteUser": "laradock",
|
||||||
|
"runServices": [
|
||||||
|
"nginx",
|
||||||
|
"postgres",
|
||||||
|
"pgadmin"
|
||||||
|
],
|
||||||
|
"service": "workspace",
|
||||||
|
"workspaceFolder": "/var/www",
|
||||||
|
"shutdownAction": "stopCompose",
|
||||||
|
"postCreateCommand": "uname -a"
|
||||||
|
}
|
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.sh text eol=lf
|
46
.github/CODE_OF_CONDUCT.md
vendored
@ -1,46 +0,0 @@
|
|||||||
# Contributor Covenant Code of Conduct
|
|
||||||
|
|
||||||
## Our Pledge
|
|
||||||
|
|
||||||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to creating a positive environment include:
|
|
||||||
|
|
||||||
* Using welcoming and inclusive language
|
|
||||||
* Being respectful of differing viewpoints and experiences
|
|
||||||
* Gracefully accepting constructive criticism
|
|
||||||
* Focusing on what is best for the community
|
|
||||||
* Showing empathy towards other community members
|
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
||||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
||||||
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
||||||
|
|
||||||
## Our Responsibilities
|
|
||||||
|
|
||||||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
|
||||||
|
|
||||||
## Scope
|
|
||||||
|
|
||||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at mahmoud@zalt.me. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
|
||||||
|
|
||||||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
|
3
.github/CONTRIBUTING.md
vendored
@ -1,3 +0,0 @@
|
|||||||
### First off, thanks for taking the time to contribute!
|
|
||||||
|
|
||||||
For the contribution guide [click here](http://laradock.io/contributing/).
|
|
6
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# DO NOT CHANGE THIS FILE PLEASE.
|
||||||
|
|
||||||
|
github: Mahmoudz
|
||||||
|
open_collective: laradock
|
||||||
|
custom: ['paypal.me/mzmmzz']
|
||||||
|
patreon: zalt
|
23
.github/ISSUE_TEMPLATE.md
vendored
@ -1,23 +0,0 @@
|
|||||||
### Info:
|
|
||||||
- Docker version (`$ docker --version`):
|
|
||||||
- Laradock commit (`$ git rev-parse HEAD`):
|
|
||||||
- System info (Mac, PC, Linux):
|
|
||||||
- System info disto/version:
|
|
||||||
|
|
||||||
### Issue:
|
|
||||||
<!--- What seems to be wrong? -->
|
|
||||||
_____
|
|
||||||
|
|
||||||
### Expected behavior:
|
|
||||||
<!--- What should happen instead? -->
|
|
||||||
_____
|
|
||||||
|
|
||||||
### Reproduce:
|
|
||||||
<!--- How can we reproduce the error? -->
|
|
||||||
_____
|
|
||||||
|
|
||||||
### Relevant Code:
|
|
||||||
|
|
||||||
```
|
|
||||||
// place a code sample here
|
|
||||||
```
|
|
50
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
name: "Bug report"
|
||||||
|
about: "Report a general issue, encountered while using Laradock."
|
||||||
|
labels: "Type: Bug"
|
||||||
|
---
|
||||||
|
|
||||||
|
### Description:
|
||||||
|
<!-- A clear and concise description of what the bug is. -->
|
||||||
|
|
||||||
|
### Expected Behavior:
|
||||||
|
<!-- A clear and concise description of what you expected to happen. -->
|
||||||
|
|
||||||
|
### Context information:
|
||||||
|
|
||||||
|
**Output of `git rev-parse HEAD`**
|
||||||
|
|
||||||
|
```
|
||||||
|
{paste here}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Output of `docker version`**
|
||||||
|
|
||||||
|
```
|
||||||
|
{paste here}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Output of `docker-compose version`**
|
||||||
|
|
||||||
|
```
|
||||||
|
{paste here}
|
||||||
|
```
|
||||||
|
|
||||||
|
**System info: Mac, Windows or Linux. Include which disto/version**
|
||||||
|
|
||||||
|
```
|
||||||
|
{paste here}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Steps to reproduce the issue:
|
||||||
|
<!--- How can we reproduce the issue? -->
|
||||||
|
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
|
||||||
|
### Stacktrace & Additional info:
|
||||||
|
|
||||||
|
```
|
||||||
|
{paste here}
|
||||||
|
```
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: Support question
|
||||||
|
url: https://gitter.im/LaraDock/laradock
|
||||||
|
about: 'This repository is only for reporting bugs. If you need help, get in touch with us via Gitter.'
|
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
name: "Feature request"
|
||||||
|
about: "Suggest an idea for this project."
|
||||||
|
labels: "Type: Feature Request"
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
<!-- A clear and concise description of what you want to happen. -->
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
<!-- Add any other context or screenshots about the feature request here. -->
|
21
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,7 +1,18 @@
|
|||||||
<!--- Thank you for contributing to Laradock -->
|
## Description
|
||||||
|
<!--- Describe your changes in detail -->
|
||||||
|
<!--- If it fixes an open issue, please link to the issue here. -->
|
||||||
|
|
||||||
##### I completed the 3 steps below:
|
## Motivation and Context
|
||||||
|
<!--- What problem does it solve, or what feature does it add? -->
|
||||||
|
|
||||||
- [ ] I've read the [Contribution Guide](http://laradock.io/contributing).
|
## Types of Changes
|
||||||
- [ ] I've updated the **documentation**. (refer to [this](http://laradock.io/contributing/#update-the-documentation-site) for how to do so).
|
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
|
||||||
- [ ] I enjoyed my time contributing and making developer's life easier :)
|
- [] Bug fix (non-breaking change which fixes an issue).
|
||||||
|
- [] New feature (non-breaking change which adds functionality).
|
||||||
|
- [] Breaking change (fix or feature that would cause existing functionality to not work as expected).
|
||||||
|
|
||||||
|
## Definition of Done Checklist:
|
||||||
|
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
||||||
|
- [] I've read the [Contribution Guide](http://laradock.io/contributing).
|
||||||
|
- [] I've updated the **documentation**. (refer to [this](http://laradock.io/contributing/#update-the-documentation-site) for how to do so).
|
||||||
|
- [] I enjoyed my time contributing and making developer's life easier :)
|
||||||
|
92
.github/README.md
vendored
@ -1,92 +0,0 @@
|
|||||||
<p align="center">
|
|
||||||
<img src="/.github/home-page-images/laradock-logo.jpg?raw=true" alt="Laradock Logo"/>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p align="center">A Docker PHP development environment that facilitates running PHP Apps on Docker</p>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="https://travis-ci.org/laradock/laradock"><img src="https://travis-ci.org/laradock/laradock.svg?branch=master" alt="Build status"></a>
|
|
||||||
<a href="https://github.com/laradock/laradock/stargazers"><a href="#backers" alt="sponsors on Open Collective"><img src="https://opencollective.com/laradock/backers/badge.svg" /></a> <a href="#sponsors" alt="Sponsors on Open Collective"><img src="https://opencollective.com/laradock/sponsors/badge.svg" /></a> <img src="https://img.shields.io/github/stars/laradock/laradock.svg" alt="GitHub stars"></a>
|
|
||||||
<a href="https://github.com/laradock/laradock/network"><img src="https://img.shields.io/github/forks/laradock/laradock.svg" alt="GitHub forks"></a>
|
|
||||||
<a href="https://github.com/laradock/laradock/issues"><img src="https://img.shields.io/github/issues/laradock/laradock.svg" alt="GitHub issues"></a>
|
|
||||||
<a href="https://raw.githubusercontent.com/laradock/laradock/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license"></a>
|
|
||||||
<a href="http://laradock.io/contributing"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="contributions welcome"></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h4 align="center" style="color:#7d58c2">Use Docker First And Learn About It Later</h4>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="http://zalt.me"><img src="http://forthebadge.com/images/badges/built-by-developers.svg" alt="forthebadge" width="240" ></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="http://laradock.io">
|
|
||||||
<img src="https://s19.postimg.org/ecnn9vdw3/Screen_Shot_2017-08-01_at_5.08.54_AM.png" width=300px" alt="Laradock Docs"/>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
## Sponsors
|
|
||||||
|
|
||||||
Support this project by becoming a sponsor.
|
|
||||||
|
|
||||||
Your logo will show up on the [github repository](https://github.com/laradock/laradock/) index page and the [documentation](http://laradock.io/) main page, with a link to your website. [[Become a sponsor](https://opencollective.com/laradock#sponsor)]
|
|
||||||
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/0/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/0/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/1/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/1/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/2/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/2/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/3/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/3/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/4/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/4/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/5/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/5/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/6/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/6/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/7/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/7/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/8/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/8/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/9/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/9/avatar.svg"></a>
|
|
||||||
|
|
||||||
|
|
||||||
## Contributors
|
|
||||||
|
|
||||||
#### Core contributors:
|
|
||||||
- [Mahmoud Zalt](https://github.com/Mahmoudz) @mahmoudz | [Twitter](https://twitter.com/Mahmoud_Zalt) | [Site](http://zalt.me)
|
|
||||||
- [Bo-Yi Wu](https://github.com/appleboy) @appleboy | [Twitter](https://twitter.com/appleboy)
|
|
||||||
- [Philippe Trépanier](https://github.com/philtrep) @philtrep
|
|
||||||
- [Mike Erickson](https://github.com/mikeerickson) @mikeerickson
|
|
||||||
- [Dwi Fahni Denni](https://github.com/zeroc0d3) @zeroc0d3
|
|
||||||
- [Thor Erik](https://github.com/thorerik) @thorerik
|
|
||||||
- [Winfried van Loon](https://github.com/winfried-van-loon) @winfried-van-loon
|
|
||||||
- [TJ Miller](https://github.com/sixlive) @sixlive
|
|
||||||
- [Yu-Lung Shao (Allen)](https://github.com/bestlong) @bestlong
|
|
||||||
- [Milan Urukalo](https://github.com/urukalo) @urukalo
|
|
||||||
- [Vince Chu](https://github.com/vwchu) @vwchu
|
|
||||||
- [Huadong Zuo](https://github.com/zuohuadong) @zuohuadong
|
|
||||||
- Join us, by submitting 20 useful PR's.
|
|
||||||
|
|
||||||
#### Awesome contributors:
|
|
||||||
|
|
||||||
<a href="https://github.com/laradock/laradock/graphs/contributors"><img src="https://opencollective.com/laradock/contributors.svg?width=890" /></a>
|
|
||||||
|
|
||||||
|
|
||||||
## Donations
|
|
||||||
|
|
||||||
> Help keeping the project development going, by [contributing](http://laradock.io/contributing) or donating a little.
|
|
||||||
> Thanks in advance.
|
|
||||||
|
|
||||||
Donate directly via [Paypal](https://www.paypal.me/mzalt)
|
|
||||||
|
|
||||||
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/mzalt)
|
|
||||||
|
|
||||||
or become a backer on [Open Collective](https://opencollective.com/laradock#backer)
|
|
||||||
|
|
||||||
<a href="https://opencollective.com/laradock#backers" target="_blank"><img src="https://opencollective.com/laradock/backers.svg?width=890"></a>
|
|
||||||
|
|
||||||
or show your support via [Beerpay](https://beerpay.io/laradock/laradock)
|
|
||||||
|
|
||||||
[![Beerpay](https://beerpay.io/laradock/laradock/badge.svg?style=flat)](https://beerpay.io/laradock/laradock)
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE)
|
|
3
.github/SUPPORT.md
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Support Questions
|
||||||
|
|
||||||
|
For help, please visit our official chatting room on [Gitter](https://gitter.im/Laradock/laradock).
|
BIN
.github/home-page-images/custom-sponsors/apiato.png
vendored
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
.github/home-page-images/custom-sponsors/bestonlinecasino.jpg
vendored
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
.github/home-page-images/custom-sponsors/casinopilotti.png
vendored
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
.github/home-page-images/documentation-button.png
vendored
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
.github/home-page-images/join-us.png
vendored
Normal file
After Width: | Height: | Size: 128 KiB |
21
.github/stale.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Configuration for Github probot-stale - https://github.com/probot/stale
|
||||||
|
|
||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 90
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 21
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- 'Type: Feature Request'
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: Stale
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
Hi 👋 this issue has been automatically marked as `stale` 📌 because it has not had recent activity 😴.
|
||||||
|
It will be closed if no further activity occurs. Thank you for your contributions ❤️.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: >
|
||||||
|
Hi again 👋 we would like to inform you that this issue has been automatically `closed` 🔒 because it had not recent activity during the `stale` period.
|
||||||
|
We really really appreciate your contributions, and looking forward for more in the future 🎈.
|
||||||
|
# Limit to only `issues` or `pulls`
|
||||||
|
only: issues
|
54
.github/workflows/main-ci.yml
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: '**'
|
||||||
|
tags: '**'
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-php:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
|
||||||
|
service: [php-fpm, php-worker, workspace, laravel-horizon]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build the Docker image
|
||||||
|
env:
|
||||||
|
PHP_VERSION: ${{ matrix.php_version }}
|
||||||
|
run: |
|
||||||
|
cp env-example .env
|
||||||
|
sed -i -- '99,274s/=false/=true/g' .env
|
||||||
|
sed -i -- 's/GNUPG=false/GNUPG=true/g' .env
|
||||||
|
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
||||||
|
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
|
||||||
|
sed -i -- 's/CASSANDRA=true/CASSANDRA=false/g' .env
|
||||||
|
sed -i -- 's/GEARMAN=true/GEARMAN=false/g' .env
|
||||||
|
sed -i -- 's/AEROSPIKE=true/AEROSPIKE=false/g' .env
|
||||||
|
sed -i -- 's/PHALCON=true/PHALCON=false/g' .env
|
||||||
|
sed -i -- 's/RDKAFKA=true/RDKAFKA=false/g' .env
|
||||||
|
sed -i -- 's/MAILPARSE=true/MAILPARSE=false/g' .env
|
||||||
|
sed -i -- 's/OCI8=true/OCI8=false/g' .env
|
||||||
|
sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env
|
||||||
|
sed -i -- 's/V8JS=true/V8JS=false/g' .env
|
||||||
|
docker-compose build ${{ matrix.service }}
|
||||||
|
|
||||||
|
build-other:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
service: ['nginx', 'redis', 'mysql', 'mariadb', 'percona', 'minio', 'mongo']
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: |
|
||||||
|
cp env-example .env
|
||||||
|
sed -i -- 's/=false/=true/g' .env
|
||||||
|
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
|
||||||
|
docker-compose build ${{ matrix.service }}
|
13
.gitignore
vendored
@ -13,4 +13,15 @@
|
|||||||
/nginx/ssl/*.key
|
/nginx/ssl/*.key
|
||||||
/nginx/ssl/*.csr
|
/nginx/ssl/*.csr
|
||||||
|
|
||||||
.DS_Store
|
/apache2/ssl/*.crt
|
||||||
|
/apache2/ssl/*.key
|
||||||
|
/apache2/ssl/*.csr
|
||||||
|
/apache2/ssl/*.org
|
||||||
|
|
||||||
|
/.devcontainer/*
|
||||||
|
!/.devcontainer/devcontainer.example.json
|
||||||
|
!/.devcontainer/docker-compose.extend-example.yml
|
||||||
|
|
||||||
|
docker-compose.custom.yml
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
@ -1,62 +0,0 @@
|
|||||||
# image: docker:latest
|
|
||||||
# services:
|
|
||||||
# - docker:dind
|
|
||||||
image: jonaskello/docker-and-compose:1.12.1-1.8.0
|
|
||||||
services:
|
|
||||||
- docker:1.12.1-dind
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- docker info
|
|
||||||
- docker-compose version
|
|
||||||
- cp env-example .env
|
|
||||||
- sed -i -- "s/=false/=true/g" .env
|
|
||||||
- cat .env
|
|
||||||
- env | sort
|
|
||||||
|
|
||||||
build:5.6:php-fpm:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "5.6"
|
|
||||||
script:
|
|
||||||
- docker-compose build php-fpm
|
|
||||||
|
|
||||||
build:7.0:php-fpm:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.0"
|
|
||||||
script:
|
|
||||||
- docker-compose build php-fpm
|
|
||||||
|
|
||||||
build:7.1:php-fpm:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.1"
|
|
||||||
script:
|
|
||||||
- docker-compose build php-fpm
|
|
||||||
|
|
||||||
build:7.2:php-fpm:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.2"
|
|
||||||
script:
|
|
||||||
- docker-compose build php-fpm
|
|
||||||
|
|
||||||
build:5.6:workspace:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "5.6"
|
|
||||||
script:
|
|
||||||
- docker-compose build workspace
|
|
||||||
|
|
||||||
build:7.0:workspace:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.0"
|
|
||||||
script:
|
|
||||||
- docker-compose build workspace
|
|
||||||
|
|
||||||
build:7.1:workspace:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.1"
|
|
||||||
script:
|
|
||||||
- docker-compose build workspace
|
|
||||||
|
|
||||||
build:7.2:workspace:
|
|
||||||
variables:
|
|
||||||
PHP_VERSION: "7.2"
|
|
||||||
script:
|
|
||||||
- docker-compose build workspace
|
|
2
.gitpod.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
image: gitpod/workspace-full
|
||||||
|
|
25
.travis.yml
@ -7,18 +7,6 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
- HUGO_VERSION=0.20.2
|
- HUGO_VERSION=0.20.2
|
||||||
|
|
||||||
- PHP_VERSION=5.6 BUILD_SERVICE=workspace
|
|
||||||
- PHP_VERSION=7.0 BUILD_SERVICE=workspace
|
|
||||||
- PHP_VERSION=7.1 BUILD_SERVICE=workspace
|
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=workspace
|
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=workspace
|
|
||||||
|
|
||||||
- PHP_VERSION=5.6 BUILD_SERVICE=php-fpm
|
|
||||||
- PHP_VERSION=7.0 BUILD_SERVICE=php-fpm
|
|
||||||
- PHP_VERSION=7.1 BUILD_SERVICE=php-fpm
|
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=php-fpm
|
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=php-fpm
|
|
||||||
|
|
||||||
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
|
- PHP_VERSION=hhvm BUILD_SERVICE=hhvm
|
||||||
|
|
||||||
# - PHP_VERSION=5.6 BUILD_SERVICE=php-worker
|
# - PHP_VERSION=5.6 BUILD_SERVICE=php-worker
|
||||||
@ -26,12 +14,21 @@ env:
|
|||||||
- PHP_VERSION=7.1 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.1 BUILD_SERVICE=php-worker
|
||||||
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.2 BUILD_SERVICE=php-worker
|
||||||
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
|
- PHP_VERSION=7.3 BUILD_SERVICE=php-worker
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=php-worker
|
||||||
|
- PHP_VERSION=8.0 BUILD_SERVICE=php-worker
|
||||||
|
|
||||||
|
- PHP_VERSION=7.0 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.1 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.2 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.3 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=7.4 BUILD_SERVICE=laravel-horizon
|
||||||
|
- PHP_VERSION=8.0 BUILD_SERVICE=laravel-horizon
|
||||||
|
|
||||||
- PHP_VERSION=NA BUILD_SERVICE=solr
|
- PHP_VERSION=NA BUILD_SERVICE=solr
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
|
- PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike"
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="blackfire minio percona nginx caddy apache2 mysql mariadb postgres postgres-postgis neo4j mongo redis"
|
- PHP_VERSION=NA BUILD_SERVICE="blackfire minio percona nginx caddy apache2 mysql mariadb postgres postgres-postgis neo4j mongo redis cassandra"
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
|
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy"
|
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy gearman"
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server"
|
- PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server"
|
||||||
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore"
|
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore"
|
||||||
# - PHP_VERSION=NA BUILD_SERVICE="aws"
|
# - PHP_VERSION=NA BUILD_SERVICE="aws"
|
||||||
|
6
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"mikestead.dotenv"
|
||||||
|
]
|
||||||
|
}
|
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"env-example": "dotenv",
|
||||||
|
"Dockerfile-*": "dockerfile"
|
||||||
|
}
|
||||||
|
}
|
3
CODE_OF_CONDUCT.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Laradock Code of Conduct
|
||||||
|
|
||||||
|
We follow the [Contributor Covenant](https://www.contributor-covenant.org/version/1/4/code-of-conduct) Code of Conduct.
|
3
CONTRIBUTING.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Thank you for your consideration
|
||||||
|
|
||||||
|
Checkout out our [contribution guide](http://laradock.io/contributing).
|
@ -17,16 +17,16 @@ googleAnalytics = "UA-37514928-9"
|
|||||||
|
|
||||||
# Repository
|
# Repository
|
||||||
provider = ""
|
provider = ""
|
||||||
repo_url = ""
|
repo_url = "https://github.com/laradock/laradock"
|
||||||
|
|
||||||
version = ""
|
version = ""
|
||||||
logo = "images/logo.png"
|
logo = "images/favicons/ms-icon-310x310.png"
|
||||||
favicon = ""
|
favicon = "images/favicons/favicon.ico"
|
||||||
|
|
||||||
permalink = "#"
|
permalink = "#"
|
||||||
|
|
||||||
# Custom assets
|
# Custom assets
|
||||||
custom_css = []
|
custom_css = ["custom-style.css"]
|
||||||
custom_js = []
|
custom_js = []
|
||||||
|
|
||||||
# Syntax highlighting theme
|
# Syntax highlighting theme
|
||||||
@ -43,7 +43,7 @@ googleAnalytics = "UA-37514928-9"
|
|||||||
[social]
|
[social]
|
||||||
twitter = ""
|
twitter = ""
|
||||||
github = "laradock/laradock"
|
github = "laradock/laradock"
|
||||||
email = ""
|
email = "support@laradock.io"
|
||||||
|
|
||||||
# ------- MENU START -----------------------------------------
|
# ------- MENU START -----------------------------------------
|
||||||
|
|
||||||
@ -62,30 +62,20 @@ googleAnalytics = "UA-37514928-9"
|
|||||||
url = "documentation/"
|
url = "documentation/"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Guides"
|
|
||||||
url = "guides/"
|
|
||||||
weight = 4
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Help & Questions"
|
name = "Help & Questions"
|
||||||
url = "help/"
|
url = "help/"
|
||||||
weight = 5
|
weight = 4
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Related Projects"
|
name = "Related Projects"
|
||||||
url = "related-projects/"
|
url = "related-projects/"
|
||||||
weight = 6
|
weight = 5
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Contributing"
|
name = "Contributions"
|
||||||
url = "contributing/"
|
url = "contributing/"
|
||||||
weight = 7
|
weight = 6
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "License"
|
|
||||||
url = "license/"
|
|
||||||
weight = 8
|
|
||||||
|
|
||||||
# ------- MENU END -----------------------------------------
|
# ------- MENU END -----------------------------------------
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
title: Contributing
|
title: Contributions
|
||||||
type: index
|
type: index
|
||||||
weight: 7
|
weight: 6
|
||||||
---
|
---
|
||||||
|
|
||||||
|
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/laradock/laradock)
|
||||||
|
|
||||||
|
|
||||||
## Have a Question
|
## Have a Question
|
||||||
|
|
||||||
@ -51,12 +53,20 @@ To update the sidebar or add a new section to it, you can edit this `DOCUMENTATI
|
|||||||
|
|
||||||
### Host the documentation locally
|
### Host the documentation locally
|
||||||
|
|
||||||
|
**Option 1: Use Hugo Docker Image:**
|
||||||
|
|
||||||
|
1. Update the `DOCUMENTATION/content`.
|
||||||
|
2. Go to `DOCUMENTATION/`.
|
||||||
|
3. Run `docker run --rm -it -v $PWD:/src -p 1313:1313 -u hugo jguyomard/hugo-builder hugo server -w --bind=0.0.0.0`
|
||||||
|
4. Visit [http://localhost:1313/](http://localhost:1313/)
|
||||||
|
|
||||||
|
**Option 2: Install Hugo Locally:**
|
||||||
|
|
||||||
1. Install [Hugo](https://gohugo.io/) on your machine.
|
1. Install [Hugo](https://gohugo.io/) on your machine.
|
||||||
2. Edit the `DOCUMENTATION/content`.
|
2. Update the `DOCUMENTATION/content`.
|
||||||
3. Delete the `/docs` folder from the root.
|
3. Delete the `/docs` folder from the root.
|
||||||
4. After you finish the editing, go to `DOCUMENTATION/` and run the `hugo` command to generate the HTML docs (inside a new `/docs` folder).
|
4. Go to `DOCUMENTATION/`.
|
||||||
|
5. Run the `hugo` command to generate the HTML docs inside a new `/docs` folder.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Support new Software (Add new Container)
|
## Support new Software (Add new Container)
|
||||||
@ -100,7 +110,7 @@ To update the sidebar or add a new section to it, you can edit this `DOCUMENTATI
|
|||||||
|
|
||||||
* Search for the image in the [Docker Hub](https://hub.docker.com/search/) and find the source..
|
* Search for the image in the [Docker Hub](https://hub.docker.com/search/) and find the source..
|
||||||
|
|
||||||
*Most of the image in Laradock are offical images, these projects live in other repositories and maintainer by other organizations.*
|
*Most of the image in Laradock are official images, these projects live in other repositories and maintainer by other organizations.*
|
||||||
|
|
||||||
**Note:** Laradock has two base images for (`Workspace` and `php-fpm`, mainly made to speed up the build time on your machine.
|
**Note:** Laradock has two base images for (`Workspace` and `php-fpm`, mainly made to speed up the build time on your machine.
|
||||||
|
|
||||||
@ -204,4 +214,4 @@ After your pull request is merged, you can safely delete your branch and pull th
|
|||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
#### Happy Coding :)
|
## Happy Coding :)
|
||||||
|
@ -7,10 +7,7 @@ weight: 2
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- [Git](https://git-scm.com/downloads)
|
- [Git](https://git-scm.com/downloads)
|
||||||
- [Docker](https://www.docker.com/products/docker/) `>= 17.12`
|
- [Docker](https://www.docker.com/products/docker/) [ >= 17.12 ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -41,21 +38,21 @@ git submodule add https://github.com/Laradock/laradock.git
|
|||||||
|
|
||||||
Note: If you are not using Git yet for your project, you can use `git clone` instead of `git submodule `.
|
Note: If you are not using Git yet for your project, you can use `git clone` instead of `git submodule `.
|
||||||
|
|
||||||
*To keep track of your Laradock changes, between your projects and also keep Laradock updated [check these docs](/documentation/#keep-track-of-your-laradock-changes)*
|
*To keep track of your Laradock changes, between your projects and also keep Laradock updated [check these docs](/documentation/#track-your-laradock-changes)*
|
||||||
|
|
||||||
|
|
||||||
Your folder structure should look like this:
|
2 - Make sure your folder structure should look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
+ project-a
|
* project-a
|
||||||
+ laradock-a
|
* laradock-a
|
||||||
+ project-b
|
* project-b
|
||||||
+ laradock-b
|
* laradock-b
|
||||||
```
|
```
|
||||||
|
|
||||||
*(It's important to rename the laradock folders to unique name in each project, if you want to run laradock per project).*
|
*(It's important to rename the laradock folders to unique name in each project, if you want to run laradock per project).*
|
||||||
|
|
||||||
> **Now jump to the [Usage](#Usage) section.**
|
3 - Go to the [Usage](#Usage) section.
|
||||||
|
|
||||||
<a name="A2"></a>
|
<a name="A2"></a>
|
||||||
### A.2) Don't have a PHP project yet:
|
### A.2) Don't have a PHP project yet:
|
||||||
@ -69,8 +66,8 @@ git clone https://github.com/laradock/laradock.git
|
|||||||
Your folder structure should look like this:
|
Your folder structure should look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
+ laradock
|
* laradock
|
||||||
+ project-z
|
* project-z
|
||||||
```
|
```
|
||||||
|
|
||||||
2 - Edit your web server sites configuration.
|
2 - Edit your web server sites configuration.
|
||||||
@ -89,7 +86,7 @@ APP_CODE_PATH_HOST=../project-z/
|
|||||||
|
|
||||||
Make sure to replace `project-z` with your project folder name.
|
Make sure to replace `project-z` with your project folder name.
|
||||||
|
|
||||||
> **Now jump to the [Usage](#Usage) section.**
|
3 - Go to the [Usage](#Usage) section.
|
||||||
|
|
||||||
|
|
||||||
<a name="B"></a>
|
<a name="B"></a>
|
||||||
@ -105,14 +102,16 @@ git clone https://github.com/laradock/laradock.git
|
|||||||
Your folder structure should look like this:
|
Your folder structure should look like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
+ laradock
|
* laradock
|
||||||
+ project-1
|
* project-1
|
||||||
+ project-2
|
* project-2
|
||||||
```
|
```
|
||||||
|
|
||||||
2 - Go to `nginx/sites` and create config files to point to different project directory when visiting different domains.
|
2 - Go to your web server and create config files to point to different project directory when visiting different domains:
|
||||||
|
|
||||||
Laradock by default includes `app.conf.example`, `laravel.conf.example` and `symfony.conf.example` as working samples.
|
For **Nginx** go to `nginx/sites`, for **Apache2** `apache2/sites`.
|
||||||
|
|
||||||
|
Laradock by default includes some sample files for you to copy `app.conf.example`, `laravel.conf.example` and `symfony.conf.example`.
|
||||||
|
|
||||||
3 - change the default names `*.conf`:
|
3 - change the default names `*.conf`:
|
||||||
|
|
||||||
@ -125,9 +124,10 @@ You can rename the config files, project folders and domains as you like, just m
|
|||||||
127.0.0.1 project-2.test
|
127.0.0.1 project-2.test
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
If you use Chrome 63 or above for development, don't use `.dev`. [Why?](https://laravel-news.com/chrome-63-now-forces-dev-domains-https). Instead use `.localhost`, `.invalid`, `.test`, or `.example`.
|
If you use Chrome 63 or above for development, don't use `.dev`. [Why?](https://laravel-news.com/chrome-63-now-forces-dev-domains-https). Instead use `.localhost`, `.invalid`, `.test`, or `.example`.
|
||||||
|
|
||||||
> **Now jump to the [Usage](#Usage) section.**
|
4 - Go to the [Usage](#Usage) section.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -213,7 +213,20 @@ Open your PHP project's `.env` file or whichever configuration file you are read
|
|||||||
DB_HOST=mysql
|
DB_HOST=mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You need to use the Laradock's default DB credentials which can be found in the `.env` file (ex: `MYSQL_USER=`).
|
||||||
|
Or you can change them and rebuild the container.
|
||||||
|
|
||||||
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
|
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.test/` and `http://project-2.test/`.
|
5 - Open your browser and visit your localhost address.
|
||||||
|
|
||||||
|
Make sure you add use the right port number as provided by your running server.
|
||||||
|
|
||||||
|
[http://localhost](http://localhost)
|
||||||
|
|
||||||
|
If you followed the multiple projects setup, you can visit `http://project-1.test/` and `http://project-2.test/`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,887 +0,0 @@
|
|||||||
---
|
|
||||||
title: Guides
|
|
||||||
type: index
|
|
||||||
weight: 4
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* [Production Setup on Digital Ocean](#Digital-Ocean)
|
|
||||||
* [PHPStorm XDebug Setup](#PHPStorm-Debugging)
|
|
||||||
* [Running Laravel Dusk Test](#Laravel-Dusk)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Digital-Ocean"></a>
|
|
||||||
# Production Setup on Digital Ocean
|
|
||||||
|
|
||||||
## Install Docker
|
|
||||||
|
|
||||||
- Visit [DigitalOcean](https://cloud.digitalocean.com/login) and login.
|
|
||||||
- Click the `Create Droplet` button.
|
|
||||||
- Open the `One-click apps` tab.
|
|
||||||
- Select Docker with your preferred version.
|
|
||||||
- Continue creating the droplet as you normally would.
|
|
||||||
- If needed, check your e-mail for the droplet root password.
|
|
||||||
|
|
||||||
## SSH to your Server
|
|
||||||
|
|
||||||
Find the IP address of the droplet in the DigitalOcean interface. Use it to connect to the server.
|
|
||||||
|
|
||||||
```
|
|
||||||
ssh root@ipaddress
|
|
||||||
```
|
|
||||||
|
|
||||||
You may be prompted for a password. Type the one you found within your e-mailbox. It'll then ask you to change the password.
|
|
||||||
|
|
||||||
You can now check if Docker is available:
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~# docker
|
|
||||||
```
|
|
||||||
|
|
||||||
## Set Up Your Laravel Project
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~# apt-get install git
|
|
||||||
$root@server:~# git clone https://github.com/laravel/laravel
|
|
||||||
$root@server:~# cd laravel
|
|
||||||
$root@server:~/laravel/ git submodule add https://github.com/Laradock/laradock.git
|
|
||||||
$root@server:~/laravel/ cd laradock
|
|
||||||
```
|
|
||||||
|
|
||||||
## Enter the laradock folder and rename env-example to .env.
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# cp env-example .env
|
|
||||||
```
|
|
||||||
|
|
||||||
## Create Your Laradock Containers
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# docker-compose up -d nginx mysql
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that more containers are available, find them in the [docs](http://laradock.io/introduction/#supported-software-containers) or the `docker-compose.yml` file.
|
|
||||||
|
|
||||||
## Go to Your Workspace
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose exec workspace bash
|
|
||||||
```
|
|
||||||
|
|
||||||
## Execute commands
|
|
||||||
|
|
||||||
If you want to only execute some command and don't want to enter bash, you can execute `docker-compose run workspace <command>`.
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose run workspace php artisan migrate
|
|
||||||
```
|
|
||||||
|
|
||||||
## Install and configure Laravel
|
|
||||||
|
|
||||||
Let's install Laravel's dependencies, add the `.env` file, generate the key and give proper permissions to the cache folder.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ root@workspace:/var/www# composer install
|
|
||||||
$ root@workspace:/var/www# cp .env.example .env
|
|
||||||
$ root@workspace:/var/www# php artisan key:generate
|
|
||||||
$ root@workspace:/var/www# exit
|
|
||||||
$root@server:~/laravel/laradock# cd ..
|
|
||||||
$root@server:~/laravel# sudo chmod -R 777 storage bootstrap/cache
|
|
||||||
```
|
|
||||||
|
|
||||||
You can then view your Laravel site by visiting the IP address of your server in your browser. For example:
|
|
||||||
|
|
||||||
```
|
|
||||||
http://192.168.1.1
|
|
||||||
```
|
|
||||||
|
|
||||||
It should show you the Laravel default welcome page.
|
|
||||||
|
|
||||||
However, we want it to show up using your custom domain name, as well.
|
|
||||||
|
|
||||||
## Using Your Own Domain Name
|
|
||||||
|
|
||||||
Login to your DNS provider, such as Godaddy, Namecheap.
|
|
||||||
|
|
||||||
Point the Custom Domain Name Server to:
|
|
||||||
|
|
||||||
```
|
|
||||||
ns1.digitalocean.com
|
|
||||||
ns2.digitalocean.com
|
|
||||||
ns3.digitalocean.com
|
|
||||||
```
|
|
||||||
|
|
||||||
Within DigitalOcean, you'll need to change some settings, too.
|
|
||||||
|
|
||||||
Visit: https://cloud.digitalocean.com/networking/domains
|
|
||||||
|
|
||||||
Add your domain name and choose the server IP you'd provision earlier.
|
|
||||||
|
|
||||||
## Serving Site With NGINX (HTTP ONLY)
|
|
||||||
|
|
||||||
Go back to command line.
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# cd nginx
|
|
||||||
$root@server:~/laravel/laradock/nginx# vim laravel.conf
|
|
||||||
```
|
|
||||||
|
|
||||||
Remove `default_server`
|
|
||||||
|
|
||||||
```
|
|
||||||
listen 80 default_server;
|
|
||||||
listen [::]:80 default_server ipv6only=on;
|
|
||||||
```
|
|
||||||
|
|
||||||
And add `server_name` (your custom domain)
|
|
||||||
|
|
||||||
```
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80 ipv6only=on;
|
|
||||||
server_name yourdomain.com;
|
|
||||||
```
|
|
||||||
|
|
||||||
## Rebuild Your Nginx
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# docker-compose down
|
|
||||||
$root@server:~/laravel/laradock# docker-compose build nginx
|
|
||||||
```
|
|
||||||
|
|
||||||
## Re Run Your Containers MYSQL and NGINX
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock/nginx# docker-compose up -d nginx mysql
|
|
||||||
```
|
|
||||||
|
|
||||||
**View Your Site with HTTP ONLY (http://yourdomain.com)**
|
|
||||||
|
|
||||||
## Run Site on SSL with Let's Encrypt Certificate
|
|
||||||
|
|
||||||
**Note: You need to Use Caddy here Instead of Nginx**
|
|
||||||
|
|
||||||
To go Caddy Folders and Edit CaddyFile
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# cd caddy
|
|
||||||
$root@server:~/laravel/laradock/caddy# vim Caddyfile
|
|
||||||
```
|
|
||||||
|
|
||||||
Remove 0.0.0.0:80
|
|
||||||
|
|
||||||
```
|
|
||||||
0.0.0.0:80
|
|
||||||
root /var/www/public
|
|
||||||
```
|
|
||||||
|
|
||||||
and replace with your https://yourdomain.com
|
|
||||||
|
|
||||||
```
|
|
||||||
https://yourdomain.com
|
|
||||||
root /var/www/public
|
|
||||||
```
|
|
||||||
|
|
||||||
uncomment tls
|
|
||||||
|
|
||||||
```
|
|
||||||
#tls self-signed
|
|
||||||
```
|
|
||||||
|
|
||||||
and replace self-signed with your email address
|
|
||||||
|
|
||||||
```
|
|
||||||
tls serverbreaker@gmai.com
|
|
||||||
```
|
|
||||||
|
|
||||||
This is needed Prior to Creating Let's Encypt
|
|
||||||
|
|
||||||
## Run Your Caddy Container without the -d flag and Generate SSL with Let's Encrypt
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# docker-compose up caddy
|
|
||||||
```
|
|
||||||
|
|
||||||
You'll be prompt here to enter your email... you may enter it or not
|
|
||||||
|
|
||||||
```
|
|
||||||
Attaching to laradock_mysql_1, laradock_caddy_1
|
|
||||||
caddy_1 | Activating privacy features...
|
|
||||||
caddy_1 | Your sites will be served over HTTPS automatically using Let's Encrypt.
|
|
||||||
caddy_1 | By continuing, you agree to the Let's Encrypt Subscriber Agreement at:
|
|
||||||
caddy_1 | https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf
|
|
||||||
caddy_1 | Activating privacy features... done.
|
|
||||||
caddy_1 | https://yourdomain.com
|
|
||||||
caddy_1 | http://yourdomain.com
|
|
||||||
```
|
|
||||||
|
|
||||||
After it finishes, press `Ctrl` + `C` to exit.
|
|
||||||
|
|
||||||
## Stop All Containers and ReRun Caddy and Other Containers on Background
|
|
||||||
|
|
||||||
```
|
|
||||||
$root@server:~/laravel/laradock# docker-compose down
|
|
||||||
$root@server:~/laravel/laradock# docker-compose up -d mysql caddy
|
|
||||||
```
|
|
||||||
|
|
||||||
View your Site in the Browser Securely Using HTTPS (https://yourdomain.com)
|
|
||||||
|
|
||||||
**Note that Certificate will be Automatically Renew By Caddy**
|
|
||||||
|
|
||||||
>References:
|
|
||||||
>
|
|
||||||
- [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04)
|
|
||||||
- [https://www.digitalocean.com/products/one-click-apps/docker/](https://www.digitalocean.com/products/one-click-apps/docker/)
|
|
||||||
- [https://docs.docker.com/engine/installation/linux/ubuntulinux/](https://docs.docker.com/engine/installation/linux/ubuntulinux/)
|
|
||||||
- [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)
|
|
||||||
- [https://caddyserver.com/docs/automatic-https](https://caddyserver.com/docs/automatic-https)
|
|
||||||
- [https://caddyserver.com/docs/tls](https://caddyserver.com/docs/tls)
|
|
||||||
- [https://caddyserver.com/docs/caddyfile](https://caddyserver.com/docs/caddyfile)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<a name="PHPStorm-Debugging"></a>
|
|
||||||
# PHPStorm XDebug Setup
|
|
||||||
|
|
||||||
- [Intro](#Intro)
|
|
||||||
- [Installation](#Installation)
|
|
||||||
- [Customize laradock/docker-compose.yml](#CustomizeDockerCompose)
|
|
||||||
- [Clean House](#InstallCleanHouse)
|
|
||||||
- [Laradock Dial Tone](#InstallLaradockDialTone)
|
|
||||||
- [hosts](#AddToHosts)
|
|
||||||
- [Firewall](#FireWall)
|
|
||||||
- [Enable xDebug on php-fpm](#enablePhpXdebug)
|
|
||||||
- [PHPStorm Settings](#InstallPHPStorm)
|
|
||||||
- [Configs](#InstallPHPStormConfigs)
|
|
||||||
- [Usage](#Usage)
|
|
||||||
- [Laravel](#UsageLaravel)
|
|
||||||
- [Run ExampleTest](#UsagePHPStormRunExampleTest)
|
|
||||||
- [Debug ExampleTest](#UsagePHPStormDebugExampleTest)
|
|
||||||
- [Debug Web Site](#UsagePHPStormDebugSite)
|
|
||||||
- [SSH into workspace](#SSHintoWorkspace)
|
|
||||||
- [KiTTY](#InstallKiTTY)
|
|
||||||
|
|
||||||
<a name="Intro"></a>
|
|
||||||
## Intro
|
|
||||||
|
|
||||||
Wiring up [Laravel](https://laravel.com/), [Laradock](https://github.com/Laradock/laradock) [Laravel+Docker] and [PHPStorm](https://www.jetbrains.com/phpstorm/) to play nice together complete with remote xdebug'ing as icing on top! Although this guide is based on `PHPStorm Windows`,
|
|
||||||
you should be able to adjust accordingly. This guide was written based on Docker for Windows Native.
|
|
||||||
|
|
||||||
<a name="Installation"></a>
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
- This guide assumes the following:
|
|
||||||
- you have already installed and are familiar with Laravel, Laradock and PHPStorm.
|
|
||||||
- you have installed Laravel as a parent of `laradock`. This guide assumes `/c/_dk/laravel`.
|
|
||||||
|
|
||||||
<a name="AddToHosts"></a>
|
|
||||||
## hosts
|
|
||||||
- Add `laravel` to your hosts file located on Windows 10 at `C:\Windows\System32\drivers\etc\hosts`. It should be set to the IP of your running container. Mine is: `10.0.75.2`
|
|
||||||
On Windows you can find it by opening Windows `Hyper-V Manager`.
|
|
||||||
- ![Windows Hyper-V Manager](images/photos/PHPStorm/Settings/WindowsHyperVManager.png)
|
|
||||||
|
|
||||||
- [Hosts File Editor](https://github.com/scottlerch/HostsFileEditor) makes it easy to change your hosts file.
|
|
||||||
- Set `laravel` to your docker host IP. See [Example](images/photos/SimpleHostsEditor/AddHost_laravel.png).
|
|
||||||
|
|
||||||
|
|
||||||
<a name="FireWall"></a>
|
|
||||||
## Firewall
|
|
||||||
Your PHPStorm will need to be able to receive a connection from PHP xdebug either your running workspace or php-fpm containers on port 9000. This means that your Windows Firewall should either enable connections from the Application PHPStorm OR the port.
|
|
||||||
|
|
||||||
- It is important to note that if the Application PHPStorm is NOT enabled in the firewall, you will not be able to recreate a rule to override that.
|
|
||||||
- Also be aware that if you are installing/upgrade different versions of PHPStorm, you MAY have orphaned references to PHPStorm in your Firewall! You may decide to remove orphaned references however in either case, make sure that they are set to receive public TCP traffic.
|
|
||||||
|
|
||||||
### Edit laradock/docker-compose.yml
|
|
||||||
Set the following variables:
|
|
||||||
```
|
|
||||||
### Workspace Utilities Container ###############
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
build:
|
|
||||||
context: ./workspace
|
|
||||||
args:
|
|
||||||
- INSTALL_XDEBUG=true
|
|
||||||
- INSTALL_WORKSPACE_SSH=true
|
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
### PHP-FPM Container #####################
|
|
||||||
|
|
||||||
php-fpm:
|
|
||||||
build:
|
|
||||||
context: ./php-fpm
|
|
||||||
args:
|
|
||||||
- INSTALL_XDEBUG=true
|
|
||||||
...
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### Edit xdebug.ini files
|
|
||||||
- `laradock/workspace/xdebug.ini`
|
|
||||||
- `laradock/php-fpm/xdebug.ini`
|
|
||||||
|
|
||||||
Set the following variables:
|
|
||||||
|
|
||||||
```
|
|
||||||
xdebug.remote_autostart=1
|
|
||||||
xdebug.remote_enable=1
|
|
||||||
xdebug.remote_connect_back=1
|
|
||||||
xdebug.cli_color=1
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
<a name="InstallCleanHouse"></a>
|
|
||||||
### Need to clean house first?
|
|
||||||
|
|
||||||
Make sure you are starting with a clean state. For example, do you have other Laradock containers and images?
|
|
||||||
Here are a few things I use to clean things up.
|
|
||||||
|
|
||||||
- Delete all containers using `grep laradock_` on the names, see: [Remove all containers based on docker image name](https://linuxconfig.org/remove-all-containners-based-on-docker-image-name).
|
|
||||||
|
|
||||||
`docker ps -a | awk '{ print $1,$2 }' | grep laradock_ | awk '{print $1}' | xargs -I {} docker rm {}`
|
|
||||||
|
|
||||||
- Delete all images containing `laradock`.
|
|
||||||
|
|
||||||
`docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}`
|
|
||||||
**Note:** This will only delete images that were built with `Laradock`, **NOT** `laradock/*` which are pulled down by `Laradock` such as `laradock/workspace`, etc.
|
|
||||||
**Note:** Some may fail with:
|
|
||||||
`Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images`
|
|
||||||
|
|
||||||
- I added this to my `.bashrc` to remove orphaned images.
|
|
||||||
|
|
||||||
```
|
|
||||||
dclean() {
|
|
||||||
processes=`docker ps -q -f status=exited`
|
|
||||||
if [ -n "$processes" ]; then
|
|
||||||
docker rm $processes
|
|
||||||
fi
|
|
||||||
|
|
||||||
images=`docker images -q -f dangling=true`
|
|
||||||
if [ -n "$images" ]; then
|
|
||||||
docker rmi $images
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- If you frequently switch configurations for Laradock, you may find that adding the following and added to your `.bashrc` or equivalent useful:
|
|
||||||
|
|
||||||
```
|
|
||||||
# remove laravel* containers
|
|
||||||
# remove laravel_* images
|
|
||||||
dcleanlaradockfunction()
|
|
||||||
{
|
|
||||||
echo 'Removing ALL containers associated with laradock'
|
|
||||||
docker ps -a | awk '{ print $1,$2 }' | grep laradock | awk '{print $1}' | xargs -I {} docker rm {}
|
|
||||||
|
|
||||||
# remove ALL images associated with laradock_
|
|
||||||
# does NOT delete laradock/* which are hub images
|
|
||||||
echo 'Removing ALL images associated with laradock_'
|
|
||||||
docker images | awk '{print $1,$2,$3}' | grep laradock_ | awk '{print $3}' | xargs -I {} docker rmi {}
|
|
||||||
|
|
||||||
echo 'Listing all laradock docker hub images...'
|
|
||||||
docker images | grep laradock
|
|
||||||
|
|
||||||
echo 'dcleanlaradock completed'
|
|
||||||
}
|
|
||||||
# associate the above function with an alias
|
|
||||||
# so can recall/lookup by typing 'alias'
|
|
||||||
alias dcleanlaradock=dcleanlaradockfunction
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="InstallLaradockDialTone"></a>
|
|
||||||
## Let's get a dial-tone with Laravel
|
|
||||||
|
|
||||||
```
|
|
||||||
# barebones at this point
|
|
||||||
docker-compose up -d nginx mysql
|
|
||||||
|
|
||||||
# run
|
|
||||||
docker-compose ps
|
|
||||||
|
|
||||||
# Should see:
|
|
||||||
Name Command State Ports
|
|
||||||
-----------------------------------------------------------------------------------------------------------
|
|
||||||
laradock_mysql_1 docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp
|
|
||||||
laradock_nginx_1 nginx Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
|
|
||||||
laradock_php-fpm_1 php-fpm Up 9000/tcp
|
|
||||||
laradock_volumes_data_1 true Exit 0
|
|
||||||
laradock_volumes_source_1 true Exit 0
|
|
||||||
laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222->22/tcp
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="enablePhpXdebug"></a>
|
|
||||||
## Enable xDebug on php-fpm
|
|
||||||
|
|
||||||
In a host terminal sitting in the laradock folder, run: `./php-fpm/xdebug status`
|
|
||||||
You should see something like the following:
|
|
||||||
|
|
||||||
```
|
|
||||||
xDebug status
|
|
||||||
laradock_php-fpm_1
|
|
||||||
PHP 7.0.9 (cli) (built: Aug 10 2016 19:45:48) ( NTS )
|
|
||||||
Copyright (c) 1997-2016 The PHP Group
|
|
||||||
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
|
|
||||||
with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
|
|
||||||
```
|
|
||||||
|
|
||||||
Other commands include `./php-fpm/xdebug start | stop`.
|
|
||||||
|
|
||||||
If you have enabled `xdebug=true` in `docker-compose.yml/php-fpm`, `xdebug` will already be running when
|
|
||||||
`php-fpm` is started and listening for debug info on port 9000.
|
|
||||||
|
|
||||||
|
|
||||||
<a name="InstallPHPStormConfigs"></a>
|
|
||||||
## PHPStorm Settings
|
|
||||||
|
|
||||||
- Here are some settings that are known to work:
|
|
||||||
- `Settings/BuildDeploymentConnection`
|
|
||||||
- ![Settings/BuildDeploymentConnection](/images/photos/PHPStorm/Settings/BuildDeploymentConnection.png)
|
|
||||||
|
|
||||||
- `Settings/BuildDeploymentConnectionMappings`
|
|
||||||
- ![Settings/BuildDeploymentConnectionMappings](/images/photos/PHPStorm/Settings/BuildDeploymentConnectionMappings.png)
|
|
||||||
|
|
||||||
- `Settings/BuildDeploymentDebugger`
|
|
||||||
- ![Settings/BuildDeploymentDebugger](/images/photos/PHPStorm/Settings/BuildDeploymentDebugger.png)
|
|
||||||
|
|
||||||
- `Settings/EditRunConfigurationRemoteWebDebug`
|
|
||||||
- ![Settings/EditRunConfigurationRemoteWebDebug](/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteWebDebug.png)
|
|
||||||
|
|
||||||
- `Settings/EditRunConfigurationRemoteExampleTestDebug`
|
|
||||||
- ![Settings/EditRunConfigurationRemoteExampleTestDebug](/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteExampleTestDebug.png)
|
|
||||||
|
|
||||||
- `Settings/LangsPHPDebug`
|
|
||||||
- ![Settings/LangsPHPDebug](/images/photos/PHPStorm/Settings/LangsPHPDebug.png)
|
|
||||||
|
|
||||||
- `Settings/LangsPHPInterpreters`
|
|
||||||
- ![Settings/LangsPHPInterpreters](/images/photos/PHPStorm/Settings/LangsPHPInterpreters.png)
|
|
||||||
|
|
||||||
- `Settings/LangsPHPPHPUnit`
|
|
||||||
- ![Settings/LangsPHPPHPUnit](/images/photos/PHPStorm/Settings/LangsPHPPHPUnit.png)
|
|
||||||
|
|
||||||
- `Settings/LangsPHPServers`
|
|
||||||
- ![Settings/LangsPHPServers](/images/photos/PHPStorm/Settings/LangsPHPServers.png)
|
|
||||||
|
|
||||||
- `RemoteHost`
|
|
||||||
To switch on this view, go to: `Menu/Tools/Deployment/Browse Remote Host`.
|
|
||||||
- ![RemoteHost](/images/photos/PHPStorm/RemoteHost.png)
|
|
||||||
|
|
||||||
- `RemoteWebDebug`
|
|
||||||
- ![DebugRemoteOn](/images/photos/PHPStorm/DebugRemoteOn.png)
|
|
||||||
|
|
||||||
- `EditRunConfigurationRemoteWebDebug`
|
|
||||||
Go to: `Menu/Run/Edit Configurations`.
|
|
||||||
- ![EditRunConfigurationRemoteWebDebug](/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteWebDebug.png)
|
|
||||||
|
|
||||||
- `EditRunConfigurationRemoteExampleTestDebug`
|
|
||||||
Go to: `Menu/Run/Edit Configurations`.
|
|
||||||
- ![EditRunConfigurationRemoteExampleTestDebug](/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteExampleTestDebug.png)
|
|
||||||
|
|
||||||
- `WindowsFirewallAllowedApps`
|
|
||||||
Go to: `Control Panel\All Control Panel Items\Windows Firewall\Allowed apps`.
|
|
||||||
- ![WindowsFirewallAllowedApps.png](/images/photos/PHPStorm/Settings/WindowsFirewallAllowedApps.png)
|
|
||||||
|
|
||||||
- `hosts`
|
|
||||||
Edit: `C:\Windows\System32\drivers\etc\hosts`.
|
|
||||||
- ![WindowsFirewallAllowedApps.png](/images/photos/PHPStorm/Settings/hosts.png)
|
|
||||||
|
|
||||||
- [Enable xDebug on php-fpm](#enablePhpXdebug)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Usage"></a>
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
<a name="UsagePHPStormRunExampleTest"></a>
|
|
||||||
### Run ExampleTest
|
|
||||||
- right-click on `tests/ExampleTest.php`
|
|
||||||
- Select: `Run 'ExampleTest.php'` or `Ctrl+Shift+F10`.
|
|
||||||
- Should pass!! You just ran a remote test via SSH!
|
|
||||||
|
|
||||||
<a name="UsagePHPStormDebugExampleTest"></a>
|
|
||||||
### Debug ExampleTest
|
|
||||||
- Open to edit: `tests/ExampleTest.php`
|
|
||||||
- Add a BreakPoint on line 16: `$this->visit('/')`
|
|
||||||
- right-click on `tests/ExampleTest.php`
|
|
||||||
- Select: `Debug 'ExampleTest.php'`.
|
|
||||||
- Should have stopped at the BreakPoint!! You are now debugging locally against a remote Laravel project via SSH!
|
|
||||||
- ![Remote Test Debugging Success](/images/photos/PHPStorm/RemoteTestDebuggingSuccess.png)
|
|
||||||
|
|
||||||
|
|
||||||
<a name="UsagePHPStormDebugSite"></a>
|
|
||||||
### Debug WebSite
|
|
||||||
- In case xDebug is disabled, from the `laradock` folder run:
|
|
||||||
`./php-fpm/xdebug start`.
|
|
||||||
- To switch xdebug off, run:
|
|
||||||
`./php-fpm/xdebug stop`
|
|
||||||
|
|
||||||
- Start Remote Debugging
|
|
||||||
- ![DebugRemoteOn](/images/photos/PHPStorm/DebugRemoteOn.png)
|
|
||||||
|
|
||||||
- Open to edit: `bootstrap/app.php`
|
|
||||||
- Add a BreakPoint on line 14: `$app = new Illuminate\Foundation\Application(`
|
|
||||||
- Reload [Laravel Site](http://laravel/)
|
|
||||||
- Should have stopped at the BreakPoint!! You are now debugging locally against a remote Laravel project via SSH!
|
|
||||||
- ![Remote Debugging Success](/images/photos/PHPStorm/RemoteDebuggingSuccess.png)
|
|
||||||
|
|
||||||
|
|
||||||
<a name="SSHintoWorkspace"></a>
|
|
||||||
## Let's shell into workspace
|
|
||||||
Assuming that you are in laradock folder, type:
|
|
||||||
`ssh -i workspace/insecure_id_rsa -p2222 root@laravel`
|
|
||||||
**Cha Ching!!!!**
|
|
||||||
- `workspace/insecure_id_rsa.ppk` may become corrupted. In which case:
|
|
||||||
- fire up `puttygen`
|
|
||||||
- import `workspace/insecure_id_rsa`
|
|
||||||
- save private key to `workspace/insecure_id_rsa.ppk`
|
|
||||||
|
|
||||||
<a name="InstallKiTTY"></a>
|
|
||||||
|
|
||||||
### KiTTY
|
|
||||||
[Kitty](http://www.9bis.net/kitty/) KiTTY is a fork from version 0.67 of PuTTY.
|
|
||||||
|
|
||||||
- Here are some settings that are working for me:
|
|
||||||
- ![Session](/images/photos/KiTTY/Session.png)
|
|
||||||
- ![Terminal](/images/photos/KiTTY/Terminal.png)
|
|
||||||
- ![Window](/images/photos/KiTTY/Window.png)
|
|
||||||
- ![WindowAppearance](/images/photos/KiTTY/WindowAppearance.png)
|
|
||||||
- ![Connection](/images/photos/KiTTY/Connection.png)
|
|
||||||
- ![ConnectionData](/images/photos/KiTTY/ConnectionData.png)
|
|
||||||
- ![ConnectionSSH](/images/photos/KiTTY/ConnectionSSH.png)
|
|
||||||
- ![ConnectionSSHAuth](/images/photos/KiTTY/ConnectionSSHAuth.png)
|
|
||||||
- ![TerminalShell](/images/photos/KiTTY/TerminalShell.png)
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<a name="Laravel-Dusk"></a>
|
|
||||||
# Running Laravel Dusk Tests
|
|
||||||
|
|
||||||
- [Option 1: Without Selenium](#option1-dusk)
|
|
||||||
- [Option 2: With Selenium](#option2-dusk)
|
|
||||||
|
|
||||||
<a name="option1-dusk"></a>
|
|
||||||
## Option 1: Without Selenium
|
|
||||||
|
|
||||||
- [Intro](#option1-dusk-intro)
|
|
||||||
- [Workspace Setup](#option1-workspace-setup)
|
|
||||||
- [Application Setup](#option1-application-setup)
|
|
||||||
- [Choose Chrome Driver Version (Optional)](#option1-choose-chrome-driver-version)
|
|
||||||
- [Run Dusk Tests](#option1-run-dusk-tests)
|
|
||||||
|
|
||||||
<a name="option1-dusk-intro"></a>
|
|
||||||
### Intro
|
|
||||||
|
|
||||||
This is a guide to run Dusk tests in your `workspace` container with headless
|
|
||||||
google-chrome and chromedriver. It has been tested with Laravel 5.4 and 5.5.
|
|
||||||
|
|
||||||
<a name="option1-workspace-setup"></a>
|
|
||||||
### Workspace Setup
|
|
||||||
|
|
||||||
Update your .env with following entries:
|
|
||||||
|
|
||||||
```
|
|
||||||
...
|
|
||||||
# Install Laravel installer bin to setup demo app
|
|
||||||
WORKSPACE_INSTALL_LARAVEL_INSTALLER=true
|
|
||||||
...
|
|
||||||
# Install all the necessary dependencies for running Dusk tests
|
|
||||||
WORKSPACE_INSTALL_DUSK_DEPS=true
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
Then run below to build your workspace.
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose build workspace
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="option1-application-setup"></a>
|
|
||||||
### Application Setup
|
|
||||||
|
|
||||||
Run a `workspace` container and you will be inside the container at `/var/www` directory.
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose run workspace bash
|
|
||||||
|
|
||||||
/var/www#> _
|
|
||||||
```
|
|
||||||
|
|
||||||
Create new Laravel application named `dusk-test` and install Laravel Dusk package.
|
|
||||||
|
|
||||||
```
|
|
||||||
/var/www> laravel new dusk-test
|
|
||||||
/var/www> cd dusk-test
|
|
||||||
/var/www/dusk-test> composer require --dev laravel/dusk
|
|
||||||
/var/www/dusk-test> php artisan dusk:install
|
|
||||||
```
|
|
||||||
|
|
||||||
Create `.env.dusk.local` by copying from `.env` file.
|
|
||||||
|
|
||||||
```
|
|
||||||
/var/www/dusk-test> cp .env .env.dusk.local
|
|
||||||
```
|
|
||||||
|
|
||||||
Update the `APP_URL` entry in `.env.dusk.local` to local Laravel server.
|
|
||||||
|
|
||||||
```
|
|
||||||
APP_URL=http://localhost:8000
|
|
||||||
```
|
|
||||||
|
|
||||||
You will need to run chromedriver with `headless` and `no-sandbox` flag. In Laravel Dusk 2.x it is
|
|
||||||
already set `headless` so you just need to add `no-sandbox` flag. If you on previous version 1.x,
|
|
||||||
you will need to update your `DustTestCase#driver` as shown below.
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
<?php
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
abstract class DuskTestCase extends BaseTestCase
|
|
||||||
{
|
|
||||||
...
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update chrome driver with below flags
|
|
||||||
*/
|
|
||||||
protected function driver()
|
|
||||||
{
|
|
||||||
$options = (new ChromeOptions)->addArguments([
|
|
||||||
'--disable-gpu',
|
|
||||||
'--headless',
|
|
||||||
'--no-sandbox'
|
|
||||||
]);
|
|
||||||
|
|
||||||
return RemoteWebDriver::create(
|
|
||||||
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
|
|
||||||
ChromeOptions::CAPABILITY, $options
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="option1-choose-chrome-driver-version"></a>
|
|
||||||
### Choose Chrome Driver Version (Optional)
|
|
||||||
|
|
||||||
You could choose to use either:
|
|
||||||
|
|
||||||
1. Chrome Driver shipped with Laravel Dusk. (Default)
|
|
||||||
2. Chrome Driver installed in `workspace` container. (Required tweak on DuskTestCase class)
|
|
||||||
|
|
||||||
For Laravel 2.x, you need to update `DuskTestCase#prepare` method if you wish to go with option #2.
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
...
|
|
||||||
abstract class DuskTestCase extends BaseTestCase
|
|
||||||
{
|
|
||||||
...
|
|
||||||
public static function prepare()
|
|
||||||
{
|
|
||||||
// Only add this line if you wish to use chrome driver installed in workspace container.
|
|
||||||
// You might want to read the file path from env file.
|
|
||||||
static::useChromedriver('/usr/local/bin/chromedriver');
|
|
||||||
|
|
||||||
static::startChromeDriver();
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
For Laravel 1.x, you need to add `DuskTestCase#buildChromeProcess` method if you wish to go with option #2.
|
|
||||||
|
|
||||||
```
|
|
||||||
<?php
|
|
||||||
|
|
||||||
...
|
|
||||||
use Symfony\Component\Process\ProcessBuilder;
|
|
||||||
|
|
||||||
abstract class DuskTestCase extends BaseTestCase
|
|
||||||
{
|
|
||||||
...
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only add this method if you wish to use chrome driver installed in workspace container
|
|
||||||
*/
|
|
||||||
protected static function buildChromeProcess()
|
|
||||||
{
|
|
||||||
return (new ProcessBuilder())
|
|
||||||
->setPrefix('chromedriver')
|
|
||||||
->getProcess()
|
|
||||||
->setEnv(static::chromeEnvironment());
|
|
||||||
}
|
|
||||||
|
|
||||||
...
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="option1-run-dusk-tests"></a>
|
|
||||||
### Run Dusk Tests
|
|
||||||
|
|
||||||
Run local server in `workspace` container and run Dusk tests.
|
|
||||||
|
|
||||||
```
|
|
||||||
# alias to run Laravel server in the background (php artisan serve --quiet &)
|
|
||||||
/var/www/dusk-test> serve
|
|
||||||
# alias to run Dusk tests (php artisan dusk)
|
|
||||||
/var/www/dusk-test> dusk
|
|
||||||
|
|
||||||
PHPUnit 6.4.0 by Sebastian Bergmann and contributors.
|
|
||||||
|
|
||||||
. 1 / 1 (100%)
|
|
||||||
|
|
||||||
Time: 837 ms, Memory: 6.00MB
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="option2-dusk"></a>
|
|
||||||
## Option 2: With Selenium
|
|
||||||
|
|
||||||
- [Intro](#dusk-intro)
|
|
||||||
- [DNS Setup](#dns-setup)
|
|
||||||
- [Docker Compose Setup](#docker-compose)
|
|
||||||
- [Laravel Dusk Setup](#laravel-dusk-setup)
|
|
||||||
- [Running Laravel Dusk Tests](#running-tests)
|
|
||||||
|
|
||||||
<a name="dusk-intro"></a>
|
|
||||||
### Intro
|
|
||||||
Setting up Laravel Dusk tests to run with Laradock appears be something that
|
|
||||||
eludes most Laradock users. This guide is designed to show you how to wire them
|
|
||||||
up to work together. This guide is written with macOS and Linux in mind. As such,
|
|
||||||
it's only been tested on macOS. Feel free to create pull requests to update the guide
|
|
||||||
for Windows-specific instructions.
|
|
||||||
|
|
||||||
This guide assumes you know how to use a DNS forwarder such as `dnsmasq` or are comfortable
|
|
||||||
with editing the `/etc/hosts` file for one-off DNS changes.
|
|
||||||
|
|
||||||
<a name="dns-setup"></a>
|
|
||||||
### DNS Setup
|
|
||||||
According to RFC-2606, only four TLDs are reserved for local testing[^1]:
|
|
||||||
|
|
||||||
- `.test`
|
|
||||||
- `.example`
|
|
||||||
- `.invalid`
|
|
||||||
- `.localhost`
|
|
||||||
|
|
||||||
A common TLD used for local development is `.dev`, but newer versions of Google
|
|
||||||
Chrome (such as the one bundled with the Selenium Docker image), will fail to
|
|
||||||
resolve that DNS as there will appear to be a name collision.
|
|
||||||
|
|
||||||
The recommended extension is `.test` for your Laravel web apps because you're
|
|
||||||
running tests. Using a DNS forwarder such as `dnsmasq` or by editing the `/etc/hosts`
|
|
||||||
file, configure the host to point to `localhost`.
|
|
||||||
|
|
||||||
For example, in your `/etc/hosts` file:
|
|
||||||
```
|
|
||||||
##
|
|
||||||
# Host Database
|
|
||||||
#
|
|
||||||
# localhost is used to configure the loopback interface
|
|
||||||
# when the system is booting. Do not change this entry.
|
|
||||||
##
|
|
||||||
127.0.0.1 localhost
|
|
||||||
255.255.255.255 broadcasthost
|
|
||||||
::1 localhost
|
|
||||||
127.0.0.1 myapp.test
|
|
||||||
```
|
|
||||||
|
|
||||||
This will ensure that when navigating to `myapp.test`, it will route the
|
|
||||||
request to `127.0.0.1` which will be handled by Nginx in Laradock.
|
|
||||||
|
|
||||||
<a name="docker-compose"></a>
|
|
||||||
### Docker Compose setup
|
|
||||||
In order to make the Selenium container talk to the Nginx container appropriately,
|
|
||||||
the `docker-compose.yml` needs to be edited to accommodate this. Make the following
|
|
||||||
changes:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
...
|
|
||||||
selenium:
|
|
||||||
...
|
|
||||||
depends_on:
|
|
||||||
- nginx
|
|
||||||
links:
|
|
||||||
- nginx:<your_domain>
|
|
||||||
```
|
|
||||||
|
|
||||||
This allows network communication between the Nginx and Selenium containers
|
|
||||||
and it also ensures that when starting the Selenium container, the Nginx
|
|
||||||
container starts up first unless it's already running. This allows
|
|
||||||
the Selenium container to make requests to the Nginx container, which is
|
|
||||||
necessary for running Dusk tests. These changes also link the `nginx` environment
|
|
||||||
variable to the domain you wired up in your hosts file.
|
|
||||||
|
|
||||||
<a name="laravel-dusk-setup"></a>
|
|
||||||
### Laravel Dusk Setup
|
|
||||||
|
|
||||||
In order to make Laravel Dusk make the proper request to the Selenium container,
|
|
||||||
you have to edit the `DuskTestCase.php` file that's provided on the initial
|
|
||||||
installation of Laravel Dusk. The change you have to make deals with the URL the
|
|
||||||
Remote Web Driver attempts to use to set up the Selenium session.
|
|
||||||
|
|
||||||
One recommendation for this is to add a separate config option in your `.env.dusk.local`
|
|
||||||
so it's still possible to run your Dusk tests locally should you want to.
|
|
||||||
|
|
||||||
#### .env.dusk.local
|
|
||||||
```
|
|
||||||
...
|
|
||||||
USE_SELENIUM=true
|
|
||||||
```
|
|
||||||
|
|
||||||
#### DuskTestCase.php
|
|
||||||
```php
|
|
||||||
abstract class DuskTestCase extends BaseTestCase
|
|
||||||
{
|
|
||||||
...
|
|
||||||
protected function driver()
|
|
||||||
{
|
|
||||||
if (env('USE_SELENIUM', 'false') == 'true') {
|
|
||||||
return RemoteWebDriver::create(
|
|
||||||
'http://selenium:4444/wd/hub', DesiredCapabilities::chrome()
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
return RemoteWebDriver::create(
|
|
||||||
'http://localhost:9515', DesiredCapabilities::chrome()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="running-tests"></a>
|
|
||||||
### Running Laravel Dusk Tests
|
|
||||||
|
|
||||||
Now that you have everything set up, to run your Dusk tests, you have to SSH
|
|
||||||
into the workspace container as you normally would:
|
|
||||||
```docker-compose exec --user=laradock workspace bash```
|
|
||||||
|
|
||||||
Once inside, you can change directory to your application and run:
|
|
||||||
|
|
||||||
```php artisan dusk```
|
|
||||||
|
|
||||||
One way to make this easier from your project is to create a helper script. Here's one such example:
|
|
||||||
```bash
|
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
LARADOCK_HOME="path/to/laradock"
|
|
||||||
|
|
||||||
pushd ${LARADOCK_HOME}
|
|
||||||
|
|
||||||
docker-compose exec --user=laradock workspace bash -c "cd my-project && php artisan dusk && exit"
|
|
||||||
```
|
|
||||||
|
|
||||||
This invokes the Dusk command from inside the workspace container but when the script completes
|
|
||||||
execution, it returns your session to your project directory.
|
|
||||||
|
|
||||||
[^1]: [Don't Use .dev for Development](https://iyware.com/dont-use-dev-for-development/)
|
|
@ -1,9 +1,129 @@
|
|||||||
---
|
---
|
||||||
title: Help & Questions
|
title: Help & Questions
|
||||||
type: index
|
type: index
|
||||||
weight: 5
|
weight: 4
|
||||||
---
|
---
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
[![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||||
|
|
||||||
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).
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a name="Common-Problems"></a>
|
||||||
|
# Common Problems
|
||||||
|
|
||||||
|
*Here's a list of the common problems you might face, and the possible solutions.*
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## I see a blank (white) page instead of the Laravel 'Welcome' page!
|
||||||
|
|
||||||
|
Run the following command from the Laravel root directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo chmod -R 777 storage bootstrap/cache
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## I see "Welcome to nginx" instead of the Laravel App!
|
||||||
|
|
||||||
|
Use `http://127.0.0.1` instead of `http://localhost` in your browser.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## I see an error message containing (address already in use) or (port is already allocated)
|
||||||
|
|
||||||
|
Make sure the ports for the services that you are trying to run (22, 80, 443, 3306, etc.) are not being used already by other programs on the host, such as a built in `apache`/`httpd` service or other development tools you have installed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## I get NGINX error 404 Not Found on Windows.
|
||||||
|
|
||||||
|
1. Go to docker Settings on your Windows machine.
|
||||||
|
2. Click on the `Shared Drives` tab and check the drive that contains your project files.
|
||||||
|
3. Enter your windows username and password.
|
||||||
|
4. Go to the `reset` tab and click restart docker.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## The time in my services does not match the current time
|
||||||
|
|
||||||
|
1. Make sure you've [changed the timezone](#Change-the-timezone).
|
||||||
|
2. Stop and rebuild the containers (`docker-compose up -d --build <services>`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
## I get MySQL connection refused
|
||||||
|
|
||||||
|
This error sometimes happens because your Laravel application isn't running on the container localhost IP (Which is 127.0.0.1). Steps to fix it:
|
||||||
|
|
||||||
|
* Option A
|
||||||
|
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`
|
||||||
|
|
||||||
|
## I get stuck when building nginx on (fetch mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz)
|
||||||
|
|
||||||
|
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-419652646), Already fixed,just set `CHANGE_SOURCE` to false.
|
||||||
|
|
||||||
|
## Custom composer repo packagist url and npm registry url
|
||||||
|
|
||||||
|
In China, the origin source of composer and npm is very slow. You can add `WORKSPACE_NPM_REGISTRY` and `WORKSPACE_COMPOSER_REPO_PACKAGIST` config in `.env` to use your custom source.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```bash
|
||||||
|
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
|
||||||
|
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com
|
||||||
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
## I got (Module build failed: Error: write EPIPE) while compiling react application
|
||||||
|
|
||||||
|
When you run `npm build` or `yarn dev` building a react application using webpack with elixir you may receive an `Error: write EPIPE` while processing .jpg images.
|
||||||
|
|
||||||
|
This is caused of an outdated library for processing **.jpg files** in ubuntu 16.04.
|
||||||
|
|
||||||
|
To fix the problem you can follow those steps
|
||||||
|
|
||||||
|
1 - Open the `.env`.
|
||||||
|
|
||||||
|
2 - Search for `WORKSPACE_INSTALL_LIBPNG` or add the key, if missing.
|
||||||
|
|
||||||
|
3 - Set the value to true:
|
||||||
|
|
||||||
|
```dotenv
|
||||||
|
WORKSPACE_INSTALL_LIBPNG=true
|
||||||
|
```
|
||||||
|
|
||||||
|
4 - Finally rebuild the workspace image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose build workspace
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -4,21 +4,41 @@ type: index
|
|||||||
weight: 1
|
weight: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<b>Laradock</b> is a full PHP development environment for Docker.
|
||||||
|
|
||||||
|
It supports a variety of common services, all pre-configured to provide a ready PHP development environment.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
---
|
||||||
|
### Use Docker First - Learn About It Later!</q>
|
||||||
|
---
|
||||||
|
|
||||||
|
<a name="features"></a>
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Easy switch between PHP versions: 7.4, 7.3, 7.2, 7.1, 5.6...
|
||||||
|
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
|
||||||
|
- Run your own stack: Memcached, HHVM, RabbitMQ...
|
||||||
|
- Each software runs on its own container: PHP-FPM, NGINX, PHP-CLI...
|
||||||
|
- Easy to customize any container, with simple edits to the `Dockerfile`.
|
||||||
|
- All Images extend from an official base Image. (Trusted base Images).
|
||||||
|
- Pre-configured NGINX to host any code at your root directory.
|
||||||
|
- Can use Laradock per project, or single Laradock for all projects.
|
||||||
|
- Easy to install/remove software's in Containers using environment variables.
|
||||||
|
- Clean and well-structured Dockerfiles (`Dockerfile`).
|
||||||
|
- The Latest version of the Docker Compose file (`docker-compose`).
|
||||||
|
- Everything is visible and editable.
|
||||||
|
- Fast Images Builds.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A full PHP development environment for Docker.
|
|
||||||
|
|
||||||
Includes pre-packaged Docker Images, all pre-configured to provide a wonderful PHP development environment.
|
|
||||||
|
|
||||||
Laradock is well known in the Laravel community, as the project started with single focus on running Laravel projects on Docker. Later and due to the large adoption from the PHP community, it started supporting other PHP projects like Symfony, CodeIgniter, WordPress, Drupal...
|
|
||||||
|
|
||||||
|
|
||||||
![](https://s19.postimg.org/jblfytw9f/laradock-logo.jpg)
|
|
||||||
|
|
||||||
## Quick Overview
|
## Quick Overview
|
||||||
|
|
||||||
Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL`, `Redis` and `Beanstalkd`:
|
Let's see how easy it is to setup our demo stack `PHP`, `NGINX`, `MySQL`, `Redis` and `Composer`:
|
||||||
|
|
||||||
1 - Clone Laradock inside your PHP project:
|
1 - Clone Laradock inside your PHP project:
|
||||||
|
|
||||||
@ -55,55 +75,133 @@ That's it! enjoy :)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="features"></a>
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- Easy switch between PHP versions: 7.3, 7.2, 7.1, 5.6...
|
|
||||||
- Choose your favorite database engine: MySQL, Postgres, MariaDB...
|
|
||||||
- Run your own combination of software: Memcached, HHVM, Beanstalkd...
|
|
||||||
- Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI...
|
|
||||||
- Easy to customize any container, with simple edit to the `Dockerfile`.
|
|
||||||
- All Images extends from an official base Image. (Trusted base Images).
|
|
||||||
- Pre-configured NGINX to host any code at your root directory.
|
|
||||||
- Can use Laradock per project, or single Laradock for all projects.
|
|
||||||
- Easy to install/remove software's in Containers using environment variables.
|
|
||||||
- Clean and well structured Dockerfiles (`Dockerfile`).
|
|
||||||
- Latest version of the Docker Compose file (`docker-compose`).
|
|
||||||
- Everything is visible and editable.
|
|
||||||
- Fast Images Builds.
|
|
||||||
- More to come every week..
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Supported-Containers"></a>
|
<a name="Supported-Containers"></a>
|
||||||
## Supported Software (Images)
|
## Supported Services
|
||||||
|
|
||||||
In adhering to the separation of concerns principle as promoted by Docker, Laradock runs each software on its own Container.
|
> Laradock, adheres to the 'separation of concerns' principle, thus it runs each software on its own Docker Container.
|
||||||
You can turn On/Off as many instances of as any container without worrying about the configurations, everything works like a charm.
|
> You can turn On/Off as many instances as you want without worrying about the configurations.
|
||||||
|
|
||||||
|
> To run a chosen container from the list below, run `docker-compose up -d {container-name}`.
|
||||||
|
> The container name `{container-name}` is the same as its folder name. Example to run the "PHP FPM" container, use the name "php-fpm".
|
||||||
|
|
||||||
|
- **Web Servers:**
|
||||||
|
- NGINX
|
||||||
|
- Apache2
|
||||||
|
- Caddy
|
||||||
|
|
||||||
|
- **Load Balancers:**
|
||||||
|
- HAProxy
|
||||||
|
- Traefik
|
||||||
|
|
||||||
- **Database Engines:**
|
|
||||||
MySQL - MariaDB - Percona - MongoDB - Neo4j - RethinkDB - MSSQL - PostgreSQL - Postgres-PostGIS.
|
|
||||||
- **Database Management:**
|
|
||||||
PhpMyAdmin - Adminer - PgAdmin
|
|
||||||
- **Cache Engines:**
|
|
||||||
Redis - Memcached - Aerospike
|
|
||||||
- **PHP Servers:**
|
|
||||||
NGINX - Apache2 - Caddy
|
|
||||||
- **PHP Compilers:**
|
- **PHP Compilers:**
|
||||||
PHP FPM - HHVM
|
- PHP FPM
|
||||||
- **Message Queueing:**
|
- HHVM
|
||||||
Beanstalkd - RabbitMQ - PHP Worker
|
|
||||||
- **Queueing Management:**
|
|
||||||
Beanstalkd Console - RabbitMQ Console
|
|
||||||
- **Random Tools:**
|
|
||||||
Mailu - HAProxy - Certbot - Blackfire - Selenium - Jenkins - ElasticSearch - Kibana - Grafana - Gitlab - Mailhog - MailDev - Minio - Varnish - Swoole - NetData - Portainer - Laravel Echo - Phalcon...
|
|
||||||
|
|
||||||
Laradock introduces the **Workspace** Image, as a development environment.
|
- **Database Management Systems:**
|
||||||
It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose.
|
- MySQL
|
||||||
|
- PostgreSQL
|
||||||
|
- PostGIS
|
||||||
|
- MariaDB
|
||||||
|
- Percona
|
||||||
|
- MSSQL
|
||||||
|
- MongoDB
|
||||||
|
- MongoDB Web UI
|
||||||
|
- Neo4j
|
||||||
|
- CouchDB
|
||||||
|
- RethinkDB
|
||||||
|
- Cassandra
|
||||||
|
|
||||||
**Workspace Image Tools**
|
|
||||||
PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - Envoy - Deployer - Vim - Yarn - SOAP - Drush - WP-CLI...
|
- **Database Management Apps:**
|
||||||
|
- PhpMyAdmin
|
||||||
|
- Adminer
|
||||||
|
- PgAdmin
|
||||||
|
|
||||||
|
- **Cache Engines:**
|
||||||
|
- Redis
|
||||||
|
- Redis Web UI
|
||||||
|
- Redis Cluster
|
||||||
|
- Memcached
|
||||||
|
- Aerospike
|
||||||
|
- Varnish
|
||||||
|
|
||||||
|
- **Message Brokers:**
|
||||||
|
- RabbitMQ
|
||||||
|
- RabbitMQ Admin Console
|
||||||
|
- Beanstalkd
|
||||||
|
- Beanstalkd Admin Console
|
||||||
|
- Eclipse Mosquitto
|
||||||
|
- PHP Worker
|
||||||
|
- Laravel Horizon
|
||||||
|
- Gearman
|
||||||
|
- Amazon Simple Queue Service
|
||||||
|
|
||||||
|
- **Mail Servers:**
|
||||||
|
- Mailu
|
||||||
|
- MailCatcher
|
||||||
|
- Mailhog
|
||||||
|
- MailDev
|
||||||
|
|
||||||
|
- **Log Management:**
|
||||||
|
- GrayLog
|
||||||
|
|
||||||
|
- **Testing:**
|
||||||
|
- Selenium
|
||||||
|
|
||||||
|
- **Monitoring:**
|
||||||
|
- Grafana
|
||||||
|
- NetData
|
||||||
|
|
||||||
|
- **Search Engines:**
|
||||||
|
- ElasticSearch
|
||||||
|
- Apache Solr
|
||||||
|
- Manticore Search
|
||||||
|
|
||||||
|
- **IDE's**
|
||||||
|
- ICE Coder
|
||||||
|
- Theia
|
||||||
|
- Web IDE
|
||||||
|
|
||||||
|
- **Miscellaneous:**
|
||||||
|
- Workspace *(Laradock container that includes a rich set of pre-configured useful tools)*
|
||||||
|
- `PHP CLI`
|
||||||
|
- `Composer`
|
||||||
|
- `Git`
|
||||||
|
- `Vim`
|
||||||
|
- `xDebug`
|
||||||
|
- `Linuxbrew`
|
||||||
|
- `Node`
|
||||||
|
- `V8JS`
|
||||||
|
- `Gulp`
|
||||||
|
- `SQLite`
|
||||||
|
- `Laravel Envoy`
|
||||||
|
- `Deployer`
|
||||||
|
- `Yarn`
|
||||||
|
- `SOAP`
|
||||||
|
- `Drush`
|
||||||
|
- `Wordpress CLI`
|
||||||
|
- Apache ZooKeeper *(Centralized service for distributed systems to a hierarchical key-value store)*
|
||||||
|
- Kibana *(Visualize your Elasticsearch data and navigate the Elastic Stack)*
|
||||||
|
- Dejavu *(Edit your Elasticsearch data)*
|
||||||
|
- LogStash *(Server-side data processing pipeline that ingests data from a multitude of sources simultaneously)*
|
||||||
|
- Jenkins *(automation server, that provides plugins to support building, deploying and automating any project)*
|
||||||
|
- Certbot *(Automatically enable HTTPS on your website)*
|
||||||
|
- Swoole *(Production-Grade Async programming Framework for PHP)*
|
||||||
|
- SonarQube *(continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs and more)*
|
||||||
|
- Gitlab *(A single application for the entire software development lifecycle)*
|
||||||
|
- PostGIS *(Database extender for PostgreSQL. It adds support for geographic objects allowing location queries to be run in SQL)*
|
||||||
|
- Blackfire *(Empowers all PHP developers and IT/Ops to continuously verify and improve their app's performance)*
|
||||||
|
- Laravel Echo *(Bring the power of WebSockets to your Laravel applications)*
|
||||||
|
- Mercure *(Server-sent events)*
|
||||||
|
- Phalcon *(A PHP web framework based on the model–view–controller pattern)*
|
||||||
|
- Minio *(Cloud storage server released under Apache License v2, compatible with Amazon S3)*
|
||||||
|
- AWS EB CLI *(CLI that helps you deploy and manage your AWS Elastic Beanstalk applications and environments)*
|
||||||
|
- Thumbor *(Photo thumbnail service)*
|
||||||
|
- IPython *(Provides a rich architecture for interactive computing)*
|
||||||
|
- Jupyter Hub *(Jupyter notebook for multiple users)*
|
||||||
|
- Portainer *(Build and manage your Docker environments with ease)*
|
||||||
|
- Docker Registry *(The Docker Registry implementation for storing and distributing Docker images)*
|
||||||
|
- Docker Web UI *(A browser-based solution for browsing and modifying a private Docker registry)*
|
||||||
|
|
||||||
You can choose, which tools to install in your workspace container and other containers, from the `.env` file.
|
You can choose, which tools to install in your workspace container and other containers, from the `.env` file.
|
||||||
|
|
||||||
@ -112,71 +210,260 @@ You can choose, which tools to install in your workspace container and other con
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
If you can't find your Software in the list, build it yourself and submit it. Contributions are welcomed :)
|
*If you can't find your Software in the list, build it yourself and submit it. Contributions are welcomed :)*
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Join Us
|
||||||
|
|
||||||
|
[![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||||
|
|
||||||
|
[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue)](https://gitpod.io/#https://github.com/laradock/laradock)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## Awesome People
|
||||||
|
|
||||||
|
Laradock is an MIT-licensed open source project with its ongoing development made possible entirely by the support of all these smart and generous people, from code contributors to financial contributors. 💜
|
||||||
|
|
||||||
|
|
||||||
|
### Project Maintainers
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/mahmoudz.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Mahmoud Zalt</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/Mahmoudz">@mahmoudz</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/appleboy.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Bo-Yi Wu</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/appleboy">@appleboy</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/philtrep.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Philippe Trépanier</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/philtrep">@philtrep</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/mikeerickson.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Mike Erickson</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/mikeerickson">@mikeerickson</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/zeroc0d3.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Dwi Fahni Denni</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/zeroc0d3">@zeroc0d3</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/thorerik.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Thor Erik</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/thorerik">@thorerik</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/winfried-van-loon.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Winfried van Loon</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/winfried-van-loon">@winfried-van-loon</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/sixlive.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>TJ Miller</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/sixlive">@sixlive</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/bestlong.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Yu-Lung Shao (Allen)</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/bestlong">@bestlong</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/urukalo.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Milan Urukalo</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/urukalo">@urukalo</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/vwchu.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Vince Chu</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/vwchu">@vwchu</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/zuohuadong.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Huadong Zuo</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/zuohuadong">@zuohuadong</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/lanphan.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Lan Phan</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/lanphan">@lanphan</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/ahkui.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Ahkui</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/ahkui">@ahkui</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/join-us.png">
|
||||||
|
<br>
|
||||||
|
<strong>< Join Us ></strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/laradock">@laradock</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### Code Contributors
|
||||||
|
|
||||||
|
[![Laradock Contributors][contributors-src]][contributors-href]
|
||||||
|
|
||||||
|
### Financial Contributors
|
||||||
|
|
||||||
|
[![Open Collective backers][backers-src]][backers-href]
|
||||||
|
|
||||||
|
You can support us using any of the methods below:
|
||||||
|
|
||||||
|
<b>1:</b> [Open Collective](https://opencollective.com/laradock/contribute)
|
||||||
|
<br>
|
||||||
|
<b>2:</b> [Paypal](https://paypal.me/mzmmzz)
|
||||||
|
<br>
|
||||||
|
<b>3:</b> [Github Sponsors](https://github.com/sponsors/Mahmoudz)
|
||||||
|
<br>
|
||||||
|
<b>4:</b> [Patreon](https://www.patreon.com/zalt)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
|
Sponsoring is an act of giving in a different fashion. 🌱
|
||||||
|
|
||||||
|
|
||||||
|
### Gold Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<a href="https://casinopilotti.com/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/casinopilotti.png" height="75px" alt="CasinoPilotti" ></a>
|
||||||
|
<a href="https://www.bestonlinecasino.com/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/bestonlinecasino.jpg" height="75px" alt="We thank bestonlinecasino.com for their support"></a>
|
||||||
|
<a href="http://apiato.io/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/apiato.png" height="75px" alt="Apiato Build PHP API's faster"></a>
|
||||||
|
|
||||||
|
|
||||||
Support this project by becoming a sponsor.
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/0/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/1/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/2/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/3/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/4/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/5/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/6/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/7/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/8/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/9/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
|
||||||
Your logo will show up on the [github repository](https://github.com/laradock/laradock/) index page and the [documentation](http://laradock.io/) main page, with a link to your website. [[Become a sponsor](https://opencollective.com/laradock#sponsor)]
|
</p>
|
||||||
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/0/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/0/avatar.svg"></a>
|
### Silver Sponsors
|
||||||
<a href="https://opencollective.com/laradock/sponsor/1/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/1/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/2/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/2/avatar.svg"></a>
|
<p align="center">
|
||||||
<a href="https://opencollective.com/laradock/sponsor/3/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/3/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/laradock/sponsor/4/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/4/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/0/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
<a href="https://opencollective.com/laradock/sponsor/5/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/5/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/1/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
<a href="https://opencollective.com/laradock/sponsor/6/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/6/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/2/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
<a href="https://opencollective.com/laradock/sponsor/7/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/7/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/3/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
<a href="https://opencollective.com/laradock/sponsor/8/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/8/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/4/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
<a href="https://opencollective.com/laradock/sponsor/9/website" target="_blank"><img src="https://opencollective.com/laradock/sponsor/9/avatar.svg"></a>
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/5/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/6/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/7/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/8/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/9/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Bronze Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/0/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/1/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/2/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/3/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/4/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/5/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/6/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/7/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/8/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/9/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
You can sponsor us using any of the methods below:
|
||||||
|
|
||||||
<a name="what-is-docker"></a>
|
<b>1:</b> Sponsor via [Open Collective](https://opencollective.com/laradock/contribute/).
|
||||||
## What is Docker?
|
<br>
|
||||||
|
<b>2:</b> Email us at <a href = "mailto: support@laradock.io">support@laradock.io</a>.
|
||||||
|
|
||||||
[Docker](https://www.docker.com) is an open platform for developing, shipping, and running applications.
|
*Sponsors logos are displayed on the [github repository](https://github.com/laradock/laradock/) page and the [documentation website](http://laradock.io/) home page.*
|
||||||
Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.
|
|
||||||
With Docker, you can manage your infrastructure in the same ways you manage your applications.
|
## License
|
||||||
By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.
|
|
||||||
|
[MIT](https://github.com/laradock/laradock/blob/master/LICENSE) © Mahmoud Zalt
|
||||||
|
|
||||||
|
|
||||||
|
[comment]: # (Open Collective Tiers)
|
||||||
|
|
||||||
|
[contributors-src]: https://opencollective.com/laradock/contributors.svg?width=890&button=false&isActive=true
|
||||||
|
[contributors-href]: https://github.com/laradock/laradock/graphs/contributors
|
||||||
|
[backers-src]: https://opencollective.com/laradock/tiers/awesome-backers.svg?width=890&button=false&isActive=true
|
||||||
|
[backers-href]: https://opencollective.com/laradock#contributors
|
||||||
|
|
||||||
|
[gold-sponsors-src]: https://opencollective.com/laradock/tiers/gold-sponsors.svg?avatarHeight=80&width=890&button=false&isActive=true
|
||||||
<a name="why-docker-not-vagrant"></a>
|
[gold-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
## Why Docker not Vagrant!?
|
[silver-sponsors-src]: https://opencollective.com/laradock/tiers/silver-sponsors.svg?avatarHeight=64&width=890&button=false&isActive=true
|
||||||
|
[silver-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
[Vagrant](https://www.vagrantup.com) creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.
|
[bronze-sponsors-src]: https://opencollective.com/laradock/tiers/bronze-sponsors.svg?avatarHeight=48&width=890&button=false&isActive=true
|
||||||
|
[bronze-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you **lightweight** Virtual Containers, that share the same kernel and allow to safely execute independent processes.
|
|
||||||
|
|
||||||
In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.
|
|
||||||
|
|
||||||
Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Demo"></a>
|
|
||||||
## Demo Video
|
|
||||||
|
|
||||||
What's better than a **Demo Video**:
|
|
||||||
|
|
||||||
- Laradock v5.* (should be next!)
|
|
||||||
- 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)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -184,31 +471,5 @@ What's better than a **Demo Video**:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Chat"></a>
|
<br>
|
||||||
## Chat with us
|
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="Donations"></a>
|
|
||||||
## Donations
|
|
||||||
|
|
||||||
> Help keeping the project development going, by [contributing](http://laradock.io/contributing) or donating a little.
|
|
||||||
> Thanks in advance.
|
|
||||||
|
|
||||||
Donate directly via [Paypal](https://www.paypal.me/mzalt)
|
|
||||||
|
|
||||||
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/mzalt)
|
|
||||||
|
|
||||||
or become a backer on [Open Collective](https://opencollective.com/laradock#backer)
|
|
||||||
|
|
||||||
<a href="https://opencollective.com/laradock#backers" target="_blank"><img src="https://opencollective.com/laradock/backers.svg?width=890"></a>
|
|
||||||
|
|
||||||
or show your support via [Beerpay](https://beerpay.io/laradock/laradock)
|
|
||||||
|
|
||||||
[![Beerpay](https://beerpay.io/laradock/laradock/badge.svg?style=flat)](https://beerpay.io/laradock/laradock)
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
title: License
|
|
||||||
type: index
|
|
||||||
weight: 8
|
|
||||||
---
|
|
||||||
|
|
||||||
[MIT License](https://github.com/laradock/laradock/blob/master/LICENSE) (MIT)
|
|
@ -1,19 +1,49 @@
|
|||||||
---
|
---
|
||||||
title: Related Projects
|
title: Related Projects
|
||||||
type: index
|
type: index
|
||||||
weight: 6
|
weight: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
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)
|
|
||||||
* [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:
|
|
||||||
* [MageDock](https://github.com/ojhaujjwal/magedock) by [Ujjwal Ojha](https://github.com/ojhaujjwal)
|
|
||||||
* [RubyDev-Dock](https://github.com/scudelletti/rubydev-dock) by [Diogo Scudelletti](https://github.com/scudelletti)
|
|
||||||
* [NoDock](https://github.com/Osedea/nodock) by [Osedea](https://github.com/Osedea)
|
|
||||||
* [Dockery](https://github.com/taufek/dockery) by [Taufek](https://github.com/Taufek)
|
|
||||||
|
|
||||||
If you want your project listed here, please open an issue.
|
* [Docker Stacks](https://github.com/sfx101/docker-stacks): A GUI for managing Laradock. (by [Subhadip Naskar](https://github.com/sfx101))
|
||||||
|
* [Laradock CLI](https://github.com/lorinlee/laradock-cli): A CLI for managing Laradock. (by [Lorin Lee](https://github.com/lorinlee))
|
||||||
|
* [Laradock CLI](https://github.com/loonpwn/laradock-cli): A CLI for managing Laradock. (by [Harlan Wilton](https://github.com/loonpwn))
|
||||||
|
* [Ansible Laradock Kubernetes](https://github.com/sifat-rahim/ansible-laradock-kubernetes): Ansible playbook to setup docker containers for Laravel apps using Laradock. (by [Sifat Rahim](https://github.com/sifat-rahim))
|
||||||
|
* [Monitor Laradock](https://github.com/zeroc0d3/monitor-laradock): Laradock Monitoring Tools (using Grafana). (by [Dwi Fahni Denni](https://github.com/zeroc0d3))
|
||||||
|
* [Laradock Manager](https://github.com/Lyimmi/laradock-manager): A simple app for managing Laradock containers. Made with wails.app (go & vue.js & vuetify). (by [Zámbó Levente](https://github.com/Lyimmi))
|
||||||
|
* [Laradock Env](https://github.com/bagart/laradock_env): A wrapper with commands for managing Laradock. (by [BAG Art](https://github.com/bagart))
|
||||||
|
* [Lara Query](https://github.com/TanisukeGoro/laraQuery): Easy Laradock CLI. (by [Okita kamegoro](https://github.com/TanisukeGoro))
|
||||||
|
* [Laradock CLI](https://github.com/tonysm/laradock-cli): Laradock CLI helper. (by [Tony Messias](https://github.com/Tonysm))
|
||||||
|
* [Laradock Lite](https://github.com/yangliuyu/laradock-lite): A Docker based laravel development environment with minimal dependencies. (by [Liu Yang](https://github.com/yangliuyu))
|
||||||
|
* [Laradock Makefile](https://github.com/bazavlukd/laradock-makefile): Makefile with some useful commands for Laradock. (by [Dmitry Bazavluk](https://github.com/bazavlukd))
|
||||||
|
* [Laradock Build](https://github.com/dockerframework/laradock-build): Docker builder & running script for Laradock. (by [Docker Framework](https://github.com/dockerframework))
|
||||||
|
* [Laravel Laradock PHPStorm](https://github.com/LarryEitel/laravel-laradock-phpstorm): Guide for configuring PHPStorm for remote debugging with Laravel & Laradock. (by [Larry Eitel](https://github.com/LarryEitel))
|
||||||
|
* [Laradock Crudbooster](https://github.com/nutellinoit/laradock-crudbooster): Docker compose & Kubernetes solution to build apps with crudbooster & Laradock. (by [Samuele Chiocca](https://github.com/nutellinoit))
|
||||||
|
* [Laradock Sample](https://github.com/tadaken3/laradock-sample): Install Laravel with Laradock. (by [Tadaken3](https://github.com/tadaken3))
|
||||||
|
* [Stylemix's Laradock](https://github.com/stylemix/laradock): Alternate laradock for multiproject purpose. (by [Stylemix LLC](https://github.com/stylemix))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Inspired by Laradock
|
||||||
|
|
||||||
|
* [Dockery](https://github.com/taufek/dockery): Laradock for Ruby. (by [Taufek Johar](https://github.com/Taufek))
|
||||||
|
* [RubyDev Dock](https://github.com/scudelletti/rubydev-dock): Laradock for Ruby. (by [Diogo Scudelletti](https://github.com/scudelletti))
|
||||||
|
* [NoDock](https://github.com/Osedea/nodock): Laradock for NodeJS. (by [Osedea](https://github.com/Osedea))
|
||||||
|
* [Laradock Multi](https://github.com/bagart/laradock-multi): Laradock for PHP & NodeJS. (by [BAG Art](https://github.com/bagart))
|
||||||
|
* [Wordpress Laradock](https://github.com/shov/wordpress-laradock): Laradock for Wordpress. (by [Alexandr Shevchenko](https://github.com/shov))
|
||||||
|
* [Yii2 Laradock](https://github.com/ydatech/yii2-laradock): Laradock for Yii2. (by [Yuda Sukmana](https://github.com/ydatech))
|
||||||
|
* [MageDock](https://github.com/ojhaujjwal/magedock): Laradock for Magento. (by [Ujjwal Ojha](https://github.com/ojhaujjwal))
|
||||||
|
* [Docker Codeigniter](https://github.com/sebastianlzy/docker-codeigniter): Laradock for Codeigniter. (by [Sebastian](https://github.com/sebastianlzy))
|
||||||
|
* [Klaradock](https://github.com/poyhsiao/Klaradock): A customized Laradock. (by [Kim Hsiao](https://github.com/poyhsiao))
|
||||||
|
* [Laravel Boilerplate](https://github.com/casivaagustin/laravel-boilerplate): A boilerplate with support for JWT. (by [Casiva Agustin](https://github.com/casivaagustin))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
> Feel free to submit a PR for listing your project here.
|
||||||
|
1
DOCUMENTATION/static/ads.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
google.com, pub-9826129398689742, DIRECT, f08c47fec0942fa0
|
30
DOCUMENTATION/static/custom-style.css
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/* Custom CSS */
|
||||||
|
|
||||||
|
.article a {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
.project .logo {
|
||||||
|
width: 200px;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
.project .banner {
|
||||||
|
height: 70px;
|
||||||
|
padding: 25px;
|
||||||
|
}
|
||||||
|
.palette-primary-deep-purple .article h1{
|
||||||
|
color: #7e57c2;
|
||||||
|
font-size: 35px;
|
||||||
|
}
|
||||||
|
.palette-primary-deep-purple .article h2{
|
||||||
|
|
||||||
|
color: #ce2046;
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
.palette-primary-deep-purple .article h3{
|
||||||
|
color: #851d54;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.palette-primary-deep-purple .article code{
|
||||||
|
color: #851d54;
|
||||||
|
background: #eeeeeea8;
|
||||||
|
}
|
@ -36,6 +36,7 @@
|
|||||||
{{ with .Site.Params.copyright }}
|
{{ with .Site.Params.copyright }}
|
||||||
© {{ $.Now.Format "2006" }} {{ . }} –
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<br><br>
|
||||||
Documentation built with
|
Documentation built with
|
||||||
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
using the
|
using the
|
||||||
|
@ -24,20 +24,6 @@
|
|||||||
|
|
||||||
<article class="article">
|
<article class="article">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|
||||||
<!-- ------------------------------------------------------------------------- -->
|
|
||||||
<!-- Google Ads -->
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
||||||
<!-- Laradock Horizontal -->
|
|
||||||
<ins class="adsbygoogle"
|
|
||||||
style="display:inline-block;width:890px;height:100px"
|
|
||||||
data-ad-client="ca-pub-9826129398689742"
|
|
||||||
data-ad-slot="2340256024"></ins>
|
|
||||||
<script>
|
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
||||||
</script>
|
|
||||||
<!-- ------------------------------------------------------------------------- -->
|
|
||||||
|
|
||||||
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
@ -46,6 +32,7 @@
|
|||||||
{{ with .Site.Params.copyright }}
|
{{ with .Site.Params.copyright }}
|
||||||
© {{ $.Now.Format "2006" }} {{ . }} –
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<br><br>
|
||||||
Documentation built with
|
Documentation built with
|
||||||
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
using the
|
using the
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{ partial "head" . }}
|
{{ partial "head" . }}
|
||||||
|
|
||||||
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
|
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
|
||||||
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
|
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
|
||||||
{{ .Scratch.Set "repo_id" $repo_id }}
|
{{ .Scratch.Set "repo_id" $repo_id }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="backdrop">
|
<div class="backdrop">
|
||||||
@ -25,38 +25,42 @@
|
|||||||
<article class="article">
|
<article class="article">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|
||||||
<!-- Wrapper arround google ads for seedanddew -->
|
<!-- ------------------------------------------------------------------------- -->
|
||||||
<div class='snd-ad'>
|
<!-- Google Ads -->
|
||||||
<!-- ------------------------------------------------------------------------- -->
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
<!-- Google Ads -->
|
<!-- Laradock Horizontal -->
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<ins class="adsbygoogle"
|
||||||
<!-- Laradock Horizontal -->
|
style="display:inline-block;width:890px;height:100px"
|
||||||
<ins class="adsbygoogle"
|
data-ad-client="ca-pub-9826129398689742"
|
||||||
style="display:inline-block;width:890px;height:100px"
|
data-ad-slot="2340256024"></ins>
|
||||||
data-ad-client="ca-pub-9826129398689742"
|
<script>
|
||||||
data-ad-slot="2340256024"></ins>
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||||
<script>
|
</script>
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
<!-- ------------------------------------------------------------------------- -->
|
||||||
</script>
|
|
||||||
<!-- ------------------------------------------------------------------------- -->
|
<br><br><br>
|
||||||
</div>
|
<img src="images/laradock-full-logo.jpg" alt="laradock logo">
|
||||||
|
|
||||||
{{ range where .Site.Pages "Type" "index" }}
|
{{ range where .Site.Pages "Type" "index" }}
|
||||||
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
<br><br><br><br><br><br>
|
||||||
|
<hr>
|
||||||
|
<br>
|
||||||
|
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<aside class="copyright" role="note">
|
<aside class="copyright" role="note">
|
||||||
{{ with .Site.Params.copyright }}
|
{{ with .Site.Params.copyright }}
|
||||||
© {{ $.Now.Format "2006" }} {{ . }} –
|
© {{ $.Now.Format "2006" }} {{ . }} –
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<br><br>
|
||||||
Documentation built with
|
Documentation built with
|
||||||
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||||||
using the
|
using the
|
||||||
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme,
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme,
|
||||||
by
|
by
|
||||||
<a href="https://zalt.me">Mahmoud Zalt</a>.
|
<a href="https://zalt.me">Mahmoud Zalt</a>.
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="{{ $.Site.BaseURL }}{{ . }}">
|
<img src="{{ $.Site.BaseURL }}{{ . }}">
|
||||||
</div>
|
</div>
|
||||||
Laradock
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!--<div class="name">-->
|
<!--<div class="name">-->
|
||||||
<!--<strong>{{ .Site.Title }} {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>-->
|
<!--<strong>{{ .Site.Title }} {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>-->
|
||||||
|
@ -12,17 +12,23 @@
|
|||||||
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
|
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
|
||||||
{{ .Hugo.Generator }}
|
{{ .Hugo.Generator }}
|
||||||
|
|
||||||
{{ with .Site.Params.description }}
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
<meta name="description" content="{{ . }}">
|
|
||||||
{{ end }}
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
{{ with .Site.Params.author }}
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||||
<meta name="author" content="{{ . }}">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
{{ with .Site.Title }}<meta property="og:site_name" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.description }}<meta property="og:description" content="{{ . }}">{{ end }}
|
||||||
{{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
|
{{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
|
||||||
{{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
|
{{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:site" content="@Mahmoud_Zalt">
|
||||||
|
{{ with .Site.Title }}<meta name="twitter:title" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.description }}<meta name="twitter:description" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Site.Params.logo }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}
|
||||||
|
|
||||||
{{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
|
{{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
@ -30,6 +36,25 @@
|
|||||||
<link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
<link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
||||||
<link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
<link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
|
||||||
|
|
||||||
|
<!-- <link rel="icon" type="image/png" sizes="192x192" href="images/favicons/android-icon-192x192.png">-->
|
||||||
|
<!-- <link rel="icon" type="image/png" sizes="32x32" href="images/favicons/favicon-32x32.png">-->
|
||||||
|
<!-- <link rel="icon" type="image/png" sizes="96x96" href="images/favicons/favicon-96x96.png">-->
|
||||||
|
<!-- <link rel="icon" type="image/png" sizes="16x16" href="images/favicons/favicon-16x16.png">-->
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="images/favicons/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="images/favicons/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="images/favicons/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="images/favicons/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="images/favicons/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="images/favicons/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="images/favicons/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="images/favicons/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="images/favicons/apple-icon-180x180.png">
|
||||||
|
<link rel="manifest" href="images/favicons/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#7e57c2">
|
||||||
|
<meta name="msapplication-TileImage" content="images/favicons/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#7e57c2">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Icon';
|
font-family: 'Icon';
|
||||||
@ -70,27 +95,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
|
<script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
|
||||||
|
|
||||||
<script>
|
|
||||||
// ------------------------------------------------------------
|
|
||||||
// seedanddew.com integration
|
|
||||||
var SeedAndDewConfig = {};
|
|
||||||
(function() {
|
|
||||||
SeedAndDewConfig['adClass'] = "snd-ad";
|
|
||||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
|
||||||
SeedAndDewConfig['projectId'] = 'd69f3ea2-1e30-44c7-bd2a-87686c0136e6';
|
|
||||||
SeedAndDewConfig['loadStartTime'] = performance.now();
|
|
||||||
SeedAndDewConfig['apiVersion'] = '2018-05-28'
|
|
||||||
SeedAndDewConfig['sessionId'] = Math.random().toString(36).substring(2, 15);
|
|
||||||
var snd = document.createElement('script');
|
|
||||||
snd.type = 'text/javascript';
|
|
||||||
snd.async = true;
|
|
||||||
snd.src = 'https://www.seedanddew.com/static/embed.min.js';
|
|
||||||
(document.getElementsByTagName('head')[0] ||
|
|
||||||
document.getElementsByTagName('body')[0]).appendChild(snd);
|
|
||||||
})();
|
|
||||||
// ------------------------------------------------------------
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{ with .RSSLink }}
|
{{ with .RSSLink }}
|
||||||
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "App",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-36x36.png",
|
||||||
|
"sizes": "36x36",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "0.75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-48x48.png",
|
||||||
|
"sizes": "48x48",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-72x72.png",
|
||||||
|
"sizes": "72x72",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-96x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "3.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "4.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 287 KiB |
275
README.md
Normal file
@ -0,0 +1,275 @@
|
|||||||
|
<p align="center">
|
||||||
|
<img src="/.github/home-page-images/laradock-logo.jpg?raw=true" alt="Laradock Logo"/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="http://laradock.io/contributing"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="contributions welcome"></a>
|
||||||
|
<a href="https://github.com/laradock/laradock/network"><img src="https://img.shields.io/github/forks/laradock/laradock.svg" alt="GitHub forks"></a>
|
||||||
|
<a href="https://github.com/laradock/laradock/issues"><img src="https://img.shields.io/github/issues/laradock/laradock.svg" alt="GitHub issues"></a>
|
||||||
|
<a href="https://github.com/laradock/laradock/stargazers"><a href="#backers" alt="sponsors on Open Collective"><img src="https://opencollective.com/laradock/backers/badge.svg" /></a> <a href="#sponsors" alt="Sponsors on Open Collective"><img src="https://opencollective.com/laradock/sponsors/badge.svg" /></a> <img src="https://img.shields.io/github/stars/laradock/laradock.svg" alt="GitHub stars"></a>
|
||||||
|
<a href="https://github.com/laradock/laradock/actions/workflows/main-ci.yml"><img src="https://github.com/laradock/laradock/actions/workflows/main-ci.yml/badge.svg" alt="GitHub CI"></a>
|
||||||
|
<a href="https://travis-ci.org/laradock/laradock"><img src="https://travis-ci.org/laradock/laradock.svg?branch=master" alt="Build status"></a>
|
||||||
|
<a href="https://raw.githubusercontent.com/laradock/laradock/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license"></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center"><b>Full PHP development environment based on Docker.</b></p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="http://zalt.me"><img src="http://forthebadge.com/images/badges/built-by-developers.svg" alt="forthebadge" width="180"></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h4 align="center" style="color:#7d58c2">Use Docker First - Learn About It Later!</h4>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="http://laradock.io">
|
||||||
|
<img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/documentation-button.png" width="300px" alt="Laradock Documentation"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
## Join Us
|
||||||
|
|
||||||
|
[![Gitter](https://badges.gitter.im/Laradock/laradock.svg)](https://gitter.im/Laradock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||||
|
|
||||||
|
[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue)](https://gitpod.io/#https://github.com/laradock/laradock)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## Awesome People
|
||||||
|
|
||||||
|
Laradock is an MIT-licensed open source project with its ongoing development made possible entirely by the support of all these smart and generous people, from code contributors to financial contributors. 💜
|
||||||
|
|
||||||
|
|
||||||
|
### Project Maintainers
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/mahmoudz.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Mahmoud Zalt</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/Mahmoudz">@mahmoudz</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/appleboy.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Bo-Yi Wu</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/appleboy">@appleboy</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/philtrep.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Philippe Trépanier</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/philtrep">@philtrep</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/mikeerickson.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Mike Erickson</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/mikeerickson">@mikeerickson</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/zeroc0d3.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Dwi Fahni Denni</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/zeroc0d3">@zeroc0d3</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/thorerik.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Thor Erik</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/thorerik">@thorerik</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/winfried-van-loon.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Winfried van Loon</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/winfried-van-loon">@winfried-van-loon</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/sixlive.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>TJ Miller</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/sixlive">@sixlive</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/bestlong.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Yu-Lung Shao (Allen)</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/bestlong">@bestlong</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/urukalo.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Milan Urukalo</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/urukalo">@urukalo</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/vwchu.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Vince Chu</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/vwchu">@vwchu</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/zuohuadong.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Huadong Zuo</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/zuohuadong">@zuohuadong</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/lanphan.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Lan Phan</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/lanphan">@lanphan</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://github.com/ahkui.png?s=150">
|
||||||
|
<br>
|
||||||
|
<strong>Ahkui</strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/ahkui">@ahkui</a>
|
||||||
|
</td>
|
||||||
|
<td align="center" valign="top">
|
||||||
|
<img width="125" height="125" src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/join-us.png">
|
||||||
|
<br>
|
||||||
|
<strong>< Join Us ></strong>
|
||||||
|
<br>
|
||||||
|
<a href="https://github.com/laradock">@laradock</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### Code Contributors
|
||||||
|
|
||||||
|
[![Laradock Contributors][contributors-src]][contributors-href]
|
||||||
|
|
||||||
|
### Financial Contributors
|
||||||
|
|
||||||
|
[![Open Collective backers][backers-src]][backers-href]
|
||||||
|
|
||||||
|
You can support us using any of the methods below:
|
||||||
|
|
||||||
|
<b>1:</b> [Open Collective](https://opencollective.com/laradock/contribute)
|
||||||
|
<br>
|
||||||
|
<b>2:</b> [Paypal](https://paypal.me/mzmmzz)
|
||||||
|
<br>
|
||||||
|
<b>3:</b> [Github Sponsors](https://github.com/sponsors/Mahmoudz)
|
||||||
|
<br>
|
||||||
|
<b>4:</b> [Patreon](https://www.patreon.com/zalt)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
|
||||||
|
Sponsoring is an act of giving in a different fashion. 🌱
|
||||||
|
|
||||||
|
|
||||||
|
### Gold Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<a href="https://casinopilotti.com/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/casinopilotti.png" height="75px" alt="CasinoPilotti" ></a>
|
||||||
|
<a href="https://www.bestonlinecasino.com/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/bestonlinecasino.jpg" height="75px" alt="We thank bestonlinecasino.com for their support"></a>
|
||||||
|
<a href="http://apiato.io/" target="_blank" style="margin-right: 4em"><img src="https://raw.githubusercontent.com/laradock/laradock/master/.github/home-page-images/custom-sponsors/apiato.png" height="75px" alt="Apiato Build PHP API's faster"></a>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/0/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/1/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/2/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/3/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/4/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/5/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/6/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/7/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/8/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/gold-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/gold-sponsors/9/avatar.svg?button=false&isActive=true" height="75px"></a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Silver Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/0/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/1/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/2/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/3/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/4/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/5/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/6/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/7/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/8/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/silver-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/silver-sponsors/9/avatar.svg?button=false&isActive=true" height="65px"></a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Bronze Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/0/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/0/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/1/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/1/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/2/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/2/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/3/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/3/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/4/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/4/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/5/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/5/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/6/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/6/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/7/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/7/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/8/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/8/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
<a href="https://opencollective.com/laradock/tiers/bronze-sponsors/9/website" target="_blank"><img src="https://opencollective.com/laradock/tiers/bronze-sponsors/9/avatar.svg?button=false&isActive=true" height="55px"></a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
You can sponsor us using any of the methods below:
|
||||||
|
|
||||||
|
<b>1:</b> Sponsor via [Open Collective](https://opencollective.com/laradock/contribute/).
|
||||||
|
<br>
|
||||||
|
<b>2:</b> Email us at <a href = "mailto: support@laradock.io">support@laradock.io</a>.
|
||||||
|
|
||||||
|
*Sponsors logos are displayed on the [github repository](https://github.com/laradock/laradock/) page and the [documentation website](http://laradock.io/) home page.*
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[MIT](https://github.com/laradock/laradock/blob/master/LICENSE) © Mahmoud Zalt
|
||||||
|
|
||||||
|
|
||||||
|
[comment]: # (Open Collective Tiers)
|
||||||
|
|
||||||
|
[contributors-src]: https://opencollective.com/laradock/contributors.svg?width=890&button=false&isActive=true
|
||||||
|
[contributors-href]: https://github.com/laradock/laradock/graphs/contributors
|
||||||
|
[backers-src]: https://opencollective.com/laradock/tiers/awesome-backers.svg?width=890&button=false&isActive=true
|
||||||
|
[backers-href]: https://opencollective.com/laradock#contributors
|
||||||
|
|
||||||
|
[gold-sponsors-src]: https://opencollective.com/laradock/tiers/gold-sponsors.svg?avatarHeight=80&width=890&button=false&isActive=true
|
||||||
|
[gold-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
|
[silver-sponsors-src]: https://opencollective.com/laradock/tiers/silver-sponsors.svg?avatarHeight=64&width=890&button=false&isActive=true
|
||||||
|
[silver-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
|
[bronze-sponsors-src]: https://opencollective.com/laradock/tiers/bronze-sponsors.svg?avatarHeight=48&width=890&button=false&isActive=true
|
||||||
|
[bronze-sponsors-href]: https://opencollective.com/laradock#contributors
|
||||||
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
|||||||
FROM webdevops/apache:ubuntu-16.04
|
FROM webdevops/apache:ubuntu-18.04
|
||||||
|
|
||||||
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
|
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
|
||||||
|
|
||||||
|
ARG DOCUMENT_ROOT=/var/www/
|
||||||
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
ARG PHP_UPSTREAM_CONTAINER=php-fpm
|
||||||
ARG PHP_UPSTREAM_PORT=9000
|
ARG PHP_UPSTREAM_PORT=9000
|
||||||
ARG PHP_UPSTREAM_TIMEOUT=60
|
ARG PHP_UPSTREAM_TIMEOUT=60
|
||||||
ARG DOCUMENT_ROOT=/var/www/
|
ARG APACHE_INSTALL_HTTP2=false
|
||||||
|
|
||||||
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
|
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
|
||||||
|
|
||||||
ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
|
ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
|
||||||
|
ENV APACHE_HTTP2=${APACHE_INSTALL_HTTP2}
|
||||||
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
|
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
|
||||||
|
|
||||||
ENV LOG_STDOUT=/var/log/apache2/access.log
|
ENV LOG_STDOUT=/var/log/apache2/access.log
|
||||||
@ -23,6 +23,10 @@ WORKDIR /var/www/
|
|||||||
|
|
||||||
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
|
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
|
||||||
|
|
||||||
|
ADD ./startup.sh /opt/startup.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["supervisord"]
|
CMD ["/bin/bash", "/opt/startup.sh"]
|
||||||
|
|
||||||
|
EXPOSE 80 443
|
@ -13,4 +13,6 @@
|
|||||||
</IfVersion>
|
</IfVersion>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog /var/log/apache2/error.log
|
||||||
|
CustomLog /var/log/apache2/access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
32
apache2/sites/default.apache.ssl.example
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName laradock.test
|
||||||
|
ServerAlias *.laradock.test
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTPS} !on
|
||||||
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerName laradock.test
|
||||||
|
ServerAlias *.laradock.test
|
||||||
|
DocumentRoot /var/www/
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLCertificateFile /etc/apache2/ssl/ssl_site.crt
|
||||||
|
SSLCertificateKeyFile /etc/apache2/ssl/ssl_site.key
|
||||||
|
|
||||||
|
<Directory "/var/www/">
|
||||||
|
AllowOverride All
|
||||||
|
<IfVersion < 2.4>
|
||||||
|
Allow from all
|
||||||
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog /var/log/apache2/error.log
|
||||||
|
CustomLog /var/log/apache2/access.log combined
|
||||||
|
</VirtualHost>
|
4
apache2/ssl/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
*.crt
|
||||||
|
*.csr
|
||||||
|
*.key
|
||||||
|
*.pem
|
21
apache2/startup.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir /etc/apache2/ssl 2> /dev/null
|
||||||
|
|
||||||
|
# Change laradock.test to the URL to be used
|
||||||
|
if [ ${APACHE_HTTP2} = true ]; then
|
||||||
|
if [ ! -f /etc/apache2/ssl/ssl_site.crt ]; then
|
||||||
|
openssl genrsa -out "/etc/apache2/ssl/ssl_site.key" 2048
|
||||||
|
openssl rand -out /root/.rnd -hex 256
|
||||||
|
openssl req -new -key "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.csr" -subj "/CN=laradock.test/O=Laradock/C=BR"
|
||||||
|
openssl x509 -req -days 365 -extfile <(printf "subjectAltName=DNS:laradock.test,DNS:*.laradock.test") -in "/etc/apache2/ssl/ssl_site.csr" -signkey "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.crt"
|
||||||
|
fi
|
||||||
|
|
||||||
|
a2enmod rewrite
|
||||||
|
a2enmod headers
|
||||||
|
a2enmod proxy proxy_html proxy_http xml2enc ssl http2
|
||||||
|
service apache2 restart
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start supervisord in foreground
|
||||||
|
supervisord
|
0
aws/.gitignore → aws-eb-cli/.gitignore
vendored
5
cassandra/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ARG CASSANDRA_VERSION=latest
|
||||||
|
FROM bitnami/cassandra:${CASSANDRA_VERSION}
|
||||||
|
|
||||||
|
LABEL maintainer="Stefan Neuhaus <https://www.github.com/stefnats>"
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM phusion/baseimage:latest
|
FROM phusion/baseimage:bionic-1.0.0
|
||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||||
|
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
|
|
||||||
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
|
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
|
||||||
|
|
||||||
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/cert1.pem
|
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/"$CN"-cert1.pem
|
||||||
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/privkey1.pem
|
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem
|
||||||
|
|
||||||
|
53
clickhouse/Dockerfile
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ARG CLICKHOUSE_VERSION=20.9.4.76
|
||||||
|
ARG CLICKHOUSE_GOSU_VERSION=1.10
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --yes --no-install-recommends \
|
||||||
|
apt-transport-https \
|
||||||
|
dirmngr \
|
||||||
|
gnupg \
|
||||||
|
&& mkdir -p /etc/apt/sources.list.d \
|
||||||
|
&& apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 \
|
||||||
|
&& echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list \
|
||||||
|
&& apt-get update \
|
||||||
|
&& env DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install --allow-unauthenticated --yes --no-install-recommends \
|
||||||
|
clickhouse-common-static=$CLICKHOUSE_VERSION \
|
||||||
|
clickhouse-client=$CLICKHOUSE_VERSION \
|
||||||
|
clickhouse-server=$CLICKHOUSE_VERSION \
|
||||||
|
locales \
|
||||||
|
tzdata \
|
||||||
|
wget \
|
||||||
|
&& rm -rf \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/var/cache/debconf \
|
||||||
|
/tmp/* \
|
||||||
|
&& apt-get clean
|
||||||
|
|
||||||
|
ADD https://github.com/tianon/gosu/releases/download/$CLICKHOUSE_GOSU_VERSION/gosu-amd64 /bin/gosu
|
||||||
|
|
||||||
|
RUN locale-gen en_US.UTF-8
|
||||||
|
ENV LANG en_US.UTF-8
|
||||||
|
ENV LANGUAGE en_US:en
|
||||||
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|
||||||
|
RUN mkdir /docker-entrypoint-initdb.d
|
||||||
|
|
||||||
|
COPY docker_related_config.xml /etc/clickhouse-server/config.d/
|
||||||
|
COPY config.xml /etc/clickhouse-server/config.xml
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
RUN chmod +x \
|
||||||
|
/entrypoint.sh \
|
||||||
|
/bin/gosu
|
||||||
|
|
||||||
|
EXPOSE 9000 8123 9009
|
||||||
|
VOLUME /var/lib/clickhouse
|
||||||
|
|
||||||
|
ENV CLICKHOUSE_CONFIG /etc/clickhouse-server/config.xml
|
||||||
|
ENV CLICKHOUSE_USER ${CLICKHOUSE_USER}
|
||||||
|
ENV CLICKHOUSE_PASSWORD ${CLICKHOUSE_PASSWORD}
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
510
clickhouse/config.xml
Normal file
@ -0,0 +1,510 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
NOTE: User and query level settings are set up in "users.xml" file.
|
||||||
|
-->
|
||||||
|
<yandex>
|
||||||
|
<!-- The list of hosts allowed to use in URL-related storage engines and table functions.
|
||||||
|
If this section is not present in configuration, all hosts are allowed.
|
||||||
|
-->
|
||||||
|
<remote_url_allow_hosts>
|
||||||
|
<!-- Host should be specified exactly as in URL. The name is checked before DNS resolution.
|
||||||
|
Example: "yandex.ru", "yandex.ru." and "www.yandex.ru" are different hosts.
|
||||||
|
If port is explicitly specified in URL, the host:port is checked as a whole.
|
||||||
|
If host specified here without port, any port with this host allowed.
|
||||||
|
"yandex.ru" -> "yandex.ru:443", "yandex.ru:80" etc. is allowed, but "yandex.ru:80" -> only "yandex.ru:80" is allowed.
|
||||||
|
If the host is specified as IP address, it is checked as specified in URL. Example: "[2a02:6b8:a::a]".
|
||||||
|
If there are redirects and support for redirects is enabled, every redirect (the Location field) is checked.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Regular expression can be specified. RE2 engine is used for regexps.
|
||||||
|
Regexps are not aligned: don't forget to add ^ and $. Also don't forget to escape dot (.) metacharacter
|
||||||
|
(forgetting to do so is a common source of error).
|
||||||
|
-->
|
||||||
|
</remote_url_allow_hosts>
|
||||||
|
|
||||||
|
<logger>
|
||||||
|
<!-- Possible levels: https://github.com/pocoproject/poco/blob/develop/Foundation/include/Poco/Logger.h#L105 -->
|
||||||
|
<level>trace</level>
|
||||||
|
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
||||||
|
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
||||||
|
<size>1000M</size>
|
||||||
|
<count>10</count>
|
||||||
|
<!-- <console>1</console> --> <!-- Default behavior is autodetection (log to console if not daemon mode and is tty) -->
|
||||||
|
</logger>
|
||||||
|
<!--display_name>production</display_name--> <!-- It is the name that will be shown in the client -->
|
||||||
|
<http_port>8123</http_port>
|
||||||
|
<tcp_port>9000</tcp_port>
|
||||||
|
<!-- For HTTPS and SSL over native protocol. -->
|
||||||
|
<!--
|
||||||
|
<https_port>8443</https_port>
|
||||||
|
<tcp_port_secure>9440</tcp_port_secure>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Used with https_port and tcp_port_secure. Full ssl options list: https://github.com/ClickHouse-Extras/poco/blob/master/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h#L71 -->
|
||||||
|
<openSSL>
|
||||||
|
<server> <!-- Used for https server AND secure tcp port -->
|
||||||
|
<!-- openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout /etc/clickhouse-server/server.key -out /etc/clickhouse-server/server.crt -->
|
||||||
|
<certificateFile>/etc/clickhouse-server/server.crt</certificateFile>
|
||||||
|
<privateKeyFile>/etc/clickhouse-server/server.key</privateKeyFile>
|
||||||
|
<!-- openssl dhparam -out /etc/clickhouse-server/dhparam.pem 4096 -->
|
||||||
|
<dhParamsFile>/etc/clickhouse-server/dhparam.pem</dhParamsFile>
|
||||||
|
<verificationMode>none</verificationMode>
|
||||||
|
<loadDefaultCAFile>true</loadDefaultCAFile>
|
||||||
|
<cacheSessions>true</cacheSessions>
|
||||||
|
<disableProtocols>sslv2,sslv3</disableProtocols>
|
||||||
|
<preferServerCiphers>true</preferServerCiphers>
|
||||||
|
</server>
|
||||||
|
|
||||||
|
<client> <!-- Used for connecting to https dictionary source -->
|
||||||
|
<loadDefaultCAFile>true</loadDefaultCAFile>
|
||||||
|
<cacheSessions>true</cacheSessions>
|
||||||
|
<disableProtocols>sslv2,sslv3</disableProtocols>
|
||||||
|
<preferServerCiphers>true</preferServerCiphers>
|
||||||
|
<!-- Use for self-signed: <verificationMode>none</verificationMode> -->
|
||||||
|
<invalidCertificateHandler>
|
||||||
|
<!-- Use for self-signed: <name>AcceptCertificateHandler</name> -->
|
||||||
|
<name>RejectCertificateHandler</name>
|
||||||
|
</invalidCertificateHandler>
|
||||||
|
</client>
|
||||||
|
</openSSL>
|
||||||
|
|
||||||
|
<!-- Default root page on http[s] server. For example load UI from https://tabix.io/ when opening http://localhost:8123 -->
|
||||||
|
<!--
|
||||||
|
<http_server_default_response><![CDATA[<html ng-app="SMI2"><head><base href="http://ui.tabix.io/"></head><body><div ui-view="" class="content-ui"></div><script src="http://loader.tabix.io/master.js"></script></body></html>]]></http_server_default_response>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Port for communication between replicas. Used for data exchange. -->
|
||||||
|
<interserver_http_port>9009</interserver_http_port>
|
||||||
|
|
||||||
|
<!-- Hostname that is used by other replicas to request this server.
|
||||||
|
If not specified, than it is determined analoguous to 'hostname -f' command.
|
||||||
|
This setting could be used to switch replication to another network interface.
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<interserver_http_host>example.yandex.ru</interserver_http_host>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Listen specified host. use :: (wildcard IPv6 address), if you want to accept connections both with IPv4 and IPv6 from everywhere. -->
|
||||||
|
<!-- <listen_host>::</listen_host> -->
|
||||||
|
<!-- Same for hosts with disabled ipv6: -->
|
||||||
|
<!-- <listen_host>0.0.0.0</listen_host> -->
|
||||||
|
|
||||||
|
<!-- Default values - try listen localhost on ipv4 and ipv6: -->
|
||||||
|
<!--
|
||||||
|
<listen_host>::1</listen_host>
|
||||||
|
<listen_host>127.0.0.1</listen_host>
|
||||||
|
-->
|
||||||
|
<!-- Don't exit if ipv6 or ipv4 unavailable, but listen_host with this protocol specified -->
|
||||||
|
<!-- <listen_try>0</listen_try> -->
|
||||||
|
|
||||||
|
<!-- Allow listen on same address:port -->
|
||||||
|
<!-- <listen_reuse_port>0</listen_reuse_port> -->
|
||||||
|
|
||||||
|
<!-- <listen_backlog>64</listen_backlog> -->
|
||||||
|
|
||||||
|
<max_connections>4096</max_connections>
|
||||||
|
<keep_alive_timeout>3</keep_alive_timeout>
|
||||||
|
|
||||||
|
<!-- Maximum number of concurrent queries. -->
|
||||||
|
<max_concurrent_queries>100</max_concurrent_queries>
|
||||||
|
|
||||||
|
<!-- Set limit on number of open files (default: maximum). This setting makes sense on Mac OS X because getrlimit() fails to retrieve
|
||||||
|
correct maximum value. -->
|
||||||
|
<!-- <max_open_files>262144</max_open_files> -->
|
||||||
|
|
||||||
|
<!-- Size of cache of uncompressed blocks of data, used in tables of MergeTree family.
|
||||||
|
In bytes. Cache is single for server. Memory is allocated only on demand.
|
||||||
|
Cache is used when 'use_uncompressed_cache' user setting turned on (off by default).
|
||||||
|
Uncompressed cache is advantageous only for very short queries and in rare cases.
|
||||||
|
-->
|
||||||
|
<uncompressed_cache_size>8589934592</uncompressed_cache_size>
|
||||||
|
|
||||||
|
<!-- Approximate size of mark cache, used in tables of MergeTree family.
|
||||||
|
In bytes. Cache is single for server. Memory is allocated only on demand.
|
||||||
|
You should not lower this value.
|
||||||
|
-->
|
||||||
|
<mark_cache_size>5368709120</mark_cache_size>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Path to data directory, with trailing slash. -->
|
||||||
|
<path>/var/lib/clickhouse/</path>
|
||||||
|
|
||||||
|
<!-- Path to temporary data for processing hard queries. -->
|
||||||
|
<tmp_path>/var/lib/clickhouse/tmp/</tmp_path>
|
||||||
|
|
||||||
|
<!-- Directory with user provided files that are accessible by 'file' table function. -->
|
||||||
|
<user_files_path>/var/lib/clickhouse/user_files/</user_files_path>
|
||||||
|
|
||||||
|
<!-- Path to configuration file with users, access rights, profiles of settings, quotas. -->
|
||||||
|
<users_config>users.xml</users_config>
|
||||||
|
|
||||||
|
<!-- Default profile of settings. -->
|
||||||
|
<default_profile>default</default_profile>
|
||||||
|
|
||||||
|
<!-- System profile of settings. This settings are used by internal processes (Buffer storage, Distibuted DDL worker and so on). -->
|
||||||
|
<!-- <system_profile>default</system_profile> -->
|
||||||
|
|
||||||
|
<!-- Default database. -->
|
||||||
|
<default_database>default</default_database>
|
||||||
|
|
||||||
|
<!-- Server time zone could be set here.
|
||||||
|
|
||||||
|
Time zone is used when converting between String and DateTime types,
|
||||||
|
when printing DateTime in text formats and parsing DateTime from text,
|
||||||
|
it is used in date and time related functions, if specific time zone was not passed as an argument.
|
||||||
|
|
||||||
|
Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
|
||||||
|
If not specified, system time zone at server startup is used.
|
||||||
|
|
||||||
|
Please note, that server could display time zone alias instead of specified name.
|
||||||
|
Example: W-SU is an alias for Europe/Moscow and Zulu is an alias for UTC.
|
||||||
|
-->
|
||||||
|
<!-- <timezone>Europe/Moscow</timezone> -->
|
||||||
|
|
||||||
|
<!-- You can specify umask here (see "man umask"). Server will apply it on startup.
|
||||||
|
Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
|
||||||
|
-->
|
||||||
|
<!-- <umask>022</umask> -->
|
||||||
|
|
||||||
|
<!-- Perform mlockall after startup to lower first queries latency
|
||||||
|
and to prevent clickhouse executable from being paged out under high IO load.
|
||||||
|
Enabling this option is recommended but will lead to increased startup time for up to a few seconds.
|
||||||
|
-->
|
||||||
|
<mlock_executable>false</mlock_executable>
|
||||||
|
|
||||||
|
<!-- Configuration of clusters that could be used in Distributed tables.
|
||||||
|
https://clickhouse.yandex/docs/en/table_engines/distributed/
|
||||||
|
-->
|
||||||
|
<remote_servers incl="clickhouse_remote_servers" >
|
||||||
|
<!-- Test only shard config for testing distributed storage -->
|
||||||
|
<test_shard_localhost>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</test_shard_localhost>
|
||||||
|
<test_cluster_two_shards_localhost>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</test_cluster_two_shards_localhost>
|
||||||
|
<test_cluster_two_shards>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>127.0.0.1</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>127.0.0.2</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</test_cluster_two_shards>
|
||||||
|
<test_shard_localhost_secure>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>9440</port>
|
||||||
|
<secure>1</secure>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</test_shard_localhost_secure>
|
||||||
|
<test_unavailable_shard>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>1</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</test_unavailable_shard>
|
||||||
|
</remote_servers>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- If element has 'incl' attribute, then for it's value will be used corresponding substitution from another file.
|
||||||
|
By default, path to file with substitutions is /etc/metrika.xml. It could be changed in config in 'include_from' element.
|
||||||
|
Values for substitutions are specified in /yandex/name_of_substitution elements in that file.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- ZooKeeper is used to store metadata about replicas, when using Replicated tables.
|
||||||
|
Optional. If you don't use replicated tables, you could omit that.
|
||||||
|
|
||||||
|
See https://clickhouse.yandex/docs/en/table_engines/replication/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<zookeeper incl="zookeeper-servers" optional="true" />
|
||||||
|
|
||||||
|
<!-- Substitutions for parameters of replicated tables.
|
||||||
|
Optional. If you don't use replicated tables, you could omit that.
|
||||||
|
|
||||||
|
See https://clickhouse.yandex/docs/en/table_engines/replication/#creating-replicated-tables
|
||||||
|
-->
|
||||||
|
<macros incl="macros" optional="true" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. -->
|
||||||
|
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Maximum session timeout, in seconds. Default: 3600. -->
|
||||||
|
<max_session_timeout>3600</max_session_timeout>
|
||||||
|
|
||||||
|
<!-- Default session timeout, in seconds. Default: 60. -->
|
||||||
|
<default_session_timeout>60</default_session_timeout>
|
||||||
|
|
||||||
|
<!-- Sending data to Graphite for monitoring. Several sections can be defined. -->
|
||||||
|
<!--
|
||||||
|
interval - send every X second
|
||||||
|
root_path - prefix for keys
|
||||||
|
hostname_in_path - append hostname to root_path (default = true)
|
||||||
|
metrics - send data from table system.metrics
|
||||||
|
events - send data from table system.events
|
||||||
|
asynchronous_metrics - send data from table system.asynchronous_metrics
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<graphite>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>42000</port>
|
||||||
|
<timeout>0.1</timeout>
|
||||||
|
<interval>60</interval>
|
||||||
|
<root_path>one_min</root_path>
|
||||||
|
<hostname_in_path>true</hostname_in_path>
|
||||||
|
|
||||||
|
<metrics>true</metrics>
|
||||||
|
<events>true</events>
|
||||||
|
<events_cumulative>false</events_cumulative>
|
||||||
|
<asynchronous_metrics>true</asynchronous_metrics>
|
||||||
|
</graphite>
|
||||||
|
<graphite>
|
||||||
|
<host>localhost</host>
|
||||||
|
<port>42000</port>
|
||||||
|
<timeout>0.1</timeout>
|
||||||
|
<interval>1</interval>
|
||||||
|
<root_path>one_sec</root_path>
|
||||||
|
|
||||||
|
<metrics>true</metrics>
|
||||||
|
<events>true</events>
|
||||||
|
<events_cumulative>false</events_cumulative>
|
||||||
|
<asynchronous_metrics>false</asynchronous_metrics>
|
||||||
|
</graphite>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Serve endpoint fot Prometheus monitoring. -->
|
||||||
|
<!--
|
||||||
|
endpoint - mertics path (relative to root, statring with "/")
|
||||||
|
port - port to setup server. If not defined or 0 than http_port used
|
||||||
|
metrics - send data from table system.metrics
|
||||||
|
events - send data from table system.events
|
||||||
|
asynchronous_metrics - send data from table system.asynchronous_metrics
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<prometheus>
|
||||||
|
<endpoint>/metrics</endpoint>
|
||||||
|
<port>9363</port>
|
||||||
|
|
||||||
|
<metrics>true</metrics>
|
||||||
|
<events>true</events>
|
||||||
|
<asynchronous_metrics>true</asynchronous_metrics>
|
||||||
|
</prometheus>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Query log. Used only for queries with setting log_queries = 1. -->
|
||||||
|
<query_log>
|
||||||
|
<!-- What table to insert data. If table is not exist, it will be created.
|
||||||
|
When query log structure is changed after system update,
|
||||||
|
then old table will be renamed and new table will be created automatically.
|
||||||
|
-->
|
||||||
|
<database>system</database>
|
||||||
|
<table>query_log</table>
|
||||||
|
<!--
|
||||||
|
PARTITION BY expr https://clickhouse.yandex/docs/en/table_engines/custom_partitioning_key/
|
||||||
|
Example:
|
||||||
|
event_date
|
||||||
|
toMonday(event_date)
|
||||||
|
toYYYYMM(event_date)
|
||||||
|
toStartOfHour(event_time)
|
||||||
|
-->
|
||||||
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||||||
|
<!-- Interval of flushing data. -->
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
</query_log>
|
||||||
|
|
||||||
|
<!-- Trace log. Stores stack traces collected by query profilers.
|
||||||
|
See query_profiler_real_time_period_ns and query_profiler_cpu_time_period_ns settings. -->
|
||||||
|
<trace_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>trace_log</table>
|
||||||
|
|
||||||
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
</trace_log>
|
||||||
|
|
||||||
|
<!-- Query thread log. Has information about all threads participated in query execution.
|
||||||
|
Used only for queries with setting log_query_threads = 1. -->
|
||||||
|
<query_thread_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>query_thread_log</table>
|
||||||
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
</query_thread_log>
|
||||||
|
|
||||||
|
<!-- Uncomment if use part log.
|
||||||
|
Part log contains information about all actions with parts in MergeTree tables (creation, deletion, merges, downloads).
|
||||||
|
<part_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>part_log</table>
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
</part_log>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Uncomment to write text log into table.
|
||||||
|
Text log contains all information from usual server log but stores it in structured and efficient way.
|
||||||
|
<text_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>text_log</table>
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
</text_log>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Uncomment to write metric log into table.
|
||||||
|
Metric log contains rows with current values of ProfileEvents, CurrentMetrics collected with "collect_interval_milliseconds" interval.
|
||||||
|
<metric_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>metric_log</table>
|
||||||
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||||
|
<collect_interval_milliseconds>1000</collect_interval_milliseconds>
|
||||||
|
</metric_log>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Parameters for embedded dictionaries, used in Yandex.Metrica.
|
||||||
|
See https://clickhouse.yandex/docs/en/dicts/internal_dicts/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Path to file with region hierarchy. -->
|
||||||
|
<!-- <path_to_regions_hierarchy_file>/opt/geo/regions_hierarchy.txt</path_to_regions_hierarchy_file> -->
|
||||||
|
|
||||||
|
<!-- Path to directory with files containing names of regions -->
|
||||||
|
<!-- <path_to_regions_names_files>/opt/geo/</path_to_regions_names_files> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Configuration of external dictionaries. See:
|
||||||
|
https://clickhouse.yandex/docs/en/dicts/external_dicts/
|
||||||
|
-->
|
||||||
|
<dictionaries_config>*_dictionary.xml</dictionaries_config>
|
||||||
|
|
||||||
|
<!-- Uncomment if you want data to be compressed 30-100% better.
|
||||||
|
Don't do that if you just started using ClickHouse.
|
||||||
|
-->
|
||||||
|
<compression incl="clickhouse_compression">
|
||||||
|
<!--
|
||||||
|
<!- - Set of variants. Checked in order. Last matching case wins. If nothing matches, lz4 will be used. - ->
|
||||||
|
<case>
|
||||||
|
|
||||||
|
<!- - Conditions. All must be satisfied. Some conditions may be omitted. - ->
|
||||||
|
<min_part_size>10000000000</min_part_size> <!- - Min part size in bytes. - ->
|
||||||
|
<min_part_size_ratio>0.01</min_part_size_ratio> <!- - Min size of part relative to whole table size. - ->
|
||||||
|
|
||||||
|
<!- - What compression method to use. - ->
|
||||||
|
<method>zstd</method>
|
||||||
|
</case>
|
||||||
|
-->
|
||||||
|
</compression>
|
||||||
|
|
||||||
|
<!-- Allow to execute distributed DDL queries (CREATE, DROP, ALTER, RENAME) on cluster.
|
||||||
|
Works only if ZooKeeper is enabled. Comment it if such functionality isn't required. -->
|
||||||
|
<distributed_ddl>
|
||||||
|
<!-- Path in ZooKeeper to queue with DDL queries -->
|
||||||
|
<path>/clickhouse/task_queue/ddl</path>
|
||||||
|
|
||||||
|
<!-- Settings from this profile will be used to execute DDL queries -->
|
||||||
|
<!-- <profile>default</profile> -->
|
||||||
|
</distributed_ddl>
|
||||||
|
|
||||||
|
<!-- Settings to fine tune MergeTree tables. See documentation in source code, in MergeTreeSettings.h -->
|
||||||
|
<!--
|
||||||
|
<merge_tree>
|
||||||
|
<max_suspicious_broken_parts>5</max_suspicious_broken_parts>
|
||||||
|
</merge_tree>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Protection from accidental DROP.
|
||||||
|
If size of a MergeTree table is greater than max_table_size_to_drop (in bytes) than table could not be dropped with any DROP query.
|
||||||
|
If you want do delete one table and don't want to change clickhouse-server config, you could create special file <clickhouse-path>/flags/force_drop_table and make DROP once.
|
||||||
|
By default max_table_size_to_drop is 50GB; max_table_size_to_drop=0 allows to DROP any tables.
|
||||||
|
The same for max_partition_size_to_drop.
|
||||||
|
Uncomment to disable protection.
|
||||||
|
-->
|
||||||
|
<!-- <max_table_size_to_drop>0</max_table_size_to_drop> -->
|
||||||
|
<!-- <max_partition_size_to_drop>0</max_partition_size_to_drop> -->
|
||||||
|
|
||||||
|
<!-- Example of parameters for GraphiteMergeTree table engine -->
|
||||||
|
<graphite_rollup_example>
|
||||||
|
<pattern>
|
||||||
|
<regexp>click_cost</regexp>
|
||||||
|
<function>any</function>
|
||||||
|
<retention>
|
||||||
|
<age>0</age>
|
||||||
|
<precision>3600</precision>
|
||||||
|
</retention>
|
||||||
|
<retention>
|
||||||
|
<age>86400</age>
|
||||||
|
<precision>60</precision>
|
||||||
|
</retention>
|
||||||
|
</pattern>
|
||||||
|
<default>
|
||||||
|
<function>max</function>
|
||||||
|
<retention>
|
||||||
|
<age>0</age>
|
||||||
|
<precision>60</precision>
|
||||||
|
</retention>
|
||||||
|
<retention>
|
||||||
|
<age>3600</age>
|
||||||
|
<precision>300</precision>
|
||||||
|
</retention>
|
||||||
|
<retention>
|
||||||
|
<age>86400</age>
|
||||||
|
<precision>3600</precision>
|
||||||
|
</retention>
|
||||||
|
</default>
|
||||||
|
</graphite_rollup_example>
|
||||||
|
|
||||||
|
<!-- Directory in <clickhouse-path> containing schema files for various input formats.
|
||||||
|
The directory will be created if it doesn't exist.
|
||||||
|
-->
|
||||||
|
<format_schema_path>/var/lib/clickhouse/format_schemas/</format_schema_path>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Uncomment to use query masking rules.
|
||||||
|
name - name for the rule (optional)
|
||||||
|
regexp - RE2 compatible regular expression (mandatory)
|
||||||
|
replace - substitution string for sensitive data (optional, by default - six asterisks)
|
||||||
|
<query_masking_rules>
|
||||||
|
<rule>
|
||||||
|
<name>hide SSN</name>
|
||||||
|
<regexp>\b\d{3}-\d{2}-\d{4}\b</regexp>
|
||||||
|
<replace>000-00-0000</replace>
|
||||||
|
</rule>
|
||||||
|
</query_masking_rules>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Uncomment to disable ClickHouse internal DNS caching. -->
|
||||||
|
<!-- <disable_internal_dns_cache>1</disable_internal_dns_cache> -->
|
||||||
|
</yandex>
|
0
clickhouse/docker-entrypoint-initdb.d/init-db.sh
Normal file
12
clickhouse/docker_related_config.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<yandex>
|
||||||
|
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
|
||||||
|
<listen_host>::</listen_host>
|
||||||
|
<listen_host>0.0.0.0</listen_host>
|
||||||
|
<listen_try>1</listen_try>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<logger>
|
||||||
|
<console>1</console>
|
||||||
|
</logger>
|
||||||
|
-->
|
||||||
|
</yandex>
|
103
clickhouse/entrypoint.sh
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# set some vars
|
||||||
|
CLICKHOUSE_CONFIG="${CLICKHOUSE_CONFIG:-/etc/clickhouse-server/config.xml}"
|
||||||
|
if [ x"$UID" == x0 ]; then
|
||||||
|
USER="$(id -u clickhouse)"
|
||||||
|
GROUP="$(id -g clickhouse)"
|
||||||
|
gosu="gosu $USER:$GROUP"
|
||||||
|
else
|
||||||
|
USER="$(id -u)"
|
||||||
|
GROUP="$(id -g)"
|
||||||
|
gosu=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# port is needed to check if clickhouse-server is ready for connections
|
||||||
|
HTTP_PORT="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=http_port)"
|
||||||
|
|
||||||
|
# get CH directories locations
|
||||||
|
DATA_DIR="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=path || true)"
|
||||||
|
TMP_DIR="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=tmp_path || true)"
|
||||||
|
USER_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=user_files_path || true)"
|
||||||
|
LOG_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=logger.log || true)"
|
||||||
|
LOG_DIR="$(dirname $LOG_PATH || true)"
|
||||||
|
ERROR_LOG_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=logger.errorlog || true)"
|
||||||
|
ERROR_LOG_DIR="$(dirname $ERROR_LOG_PATH || true)"
|
||||||
|
FORMAT_SCHEMA_PATH="$(clickhouse extract-from-config --config-file $CLICKHOUSE_CONFIG --key=format_schema_path || true)"
|
||||||
|
CLICKHOUSE_USER="${CLICKHOUSE_USER:-default}"
|
||||||
|
|
||||||
|
for dir in "$DATA_DIR" \
|
||||||
|
"$ERROR_LOG_DIR" \
|
||||||
|
"$LOG_DIR" \
|
||||||
|
"$TMP_DIR" \
|
||||||
|
"$USER_PATH" \
|
||||||
|
"$FORMAT_SCHEMA_PATH"
|
||||||
|
do
|
||||||
|
# check if variable not empty
|
||||||
|
[ -z "$dir" ] && continue
|
||||||
|
# ensure directories exist
|
||||||
|
if ! mkdir -p "$dir"; then
|
||||||
|
echo "Couldn't create necessary directory: $dir"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$UID" == x0 ] && [ "$CLICKHOUSE_DO_NOT_CHOWN" != "1" ]; then
|
||||||
|
# ensure proper directories permissions
|
||||||
|
chown -R "$USER:$GROUP" "$dir"
|
||||||
|
elif [ "$(stat -c %u "$dir")" != "$USER" ]; then
|
||||||
|
echo "Necessary directory '$dir' isn't owned by user with id '$USER'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ -n "$(ls /docker-entrypoint-initdb.d/)" ]; then
|
||||||
|
$gosu /usr/bin/clickhouse-server --config-file=$CLICKHOUSE_CONFIG &
|
||||||
|
pid="$!"
|
||||||
|
|
||||||
|
# check if clickhouse is ready to accept connections
|
||||||
|
# will try to send ping clickhouse via http_port (max 12 retries, with 1 sec delay)
|
||||||
|
if ! wget --spider --quiet --tries=12 --waitretry=1 --retry-connrefused "http://localhost:$HTTP_PORT/ping" ; then
|
||||||
|
echo >&2 'ClickHouse init process failed.'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$CLICKHOUSE_PASSWORD" ]; then
|
||||||
|
printf -v WITH_PASSWORD '%s %q' "--password" "$CLICKHOUSE_PASSWORD"
|
||||||
|
fi
|
||||||
|
|
||||||
|
clickhouseclient=( clickhouse-client --multiquery -u $CLICKHOUSE_USER $WITH_PASSWORD )
|
||||||
|
|
||||||
|
echo
|
||||||
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
|
case "$f" in
|
||||||
|
*.sh)
|
||||||
|
if [ -x "$f" ]; then
|
||||||
|
echo "$0: running $f"
|
||||||
|
"$f"
|
||||||
|
else
|
||||||
|
echo "$0: sourcing $f"
|
||||||
|
. "$f"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*.sql) echo "$0: running $f"; cat "$f" | "${clickhouseclient[@]}" ; echo ;;
|
||||||
|
*.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${clickhouseclient[@]}"; echo ;;
|
||||||
|
*) echo "$0: ignoring $f" ;;
|
||||||
|
esac
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
||||||
|
if ! kill -s TERM "$pid" || ! wait "$pid"; then
|
||||||
|
echo >&2 'Finishing of ClickHouse init process failed.'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if no args passed to `docker run` or first argument start with `--`, then the user is passing clickhouse-server arguments
|
||||||
|
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
|
||||||
|
exec $gosu /usr/bin/clickhouse-server --config-file=$CLICKHOUSE_CONFIG "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Otherwise, we assume the user want to run his own process, for example a `bash` shell to explore this image
|
||||||
|
exec "$@"
|
138
clickhouse/users.xml
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<yandex>
|
||||||
|
<!-- Profiles of settings. -->
|
||||||
|
<profiles>
|
||||||
|
<!-- Default settings. -->
|
||||||
|
<default>
|
||||||
|
<!-- Maximum memory usage for processing single query, in bytes. -->
|
||||||
|
<max_memory_usage>10000000000</max_memory_usage>
|
||||||
|
|
||||||
|
<!-- Use cache of uncompressed blocks of data. Meaningful only for processing many of very short queries. -->
|
||||||
|
<use_uncompressed_cache>0</use_uncompressed_cache>
|
||||||
|
|
||||||
|
<!-- How to choose between replicas during distributed query processing.
|
||||||
|
random - choose random replica from set of replicas with minimum number of errors
|
||||||
|
nearest_hostname - from set of replicas with minimum number of errors, choose replica
|
||||||
|
with minimum number of different symbols between replica's hostname and local hostname
|
||||||
|
(Hamming distance).
|
||||||
|
in_order - first live replica is chosen in specified order.
|
||||||
|
first_or_random - if first replica one has higher number of errors, pick a random one from replicas with minimum number of errors.
|
||||||
|
-->
|
||||||
|
<load_balancing>random</load_balancing>
|
||||||
|
</default>
|
||||||
|
|
||||||
|
<!-- Profile that allows only read queries. -->
|
||||||
|
<readonly>
|
||||||
|
<readonly>1</readonly>
|
||||||
|
</readonly>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<!-- Users and ACL. -->
|
||||||
|
<users>
|
||||||
|
<!-- If user name was not specified, 'default' user is used. -->
|
||||||
|
<default>
|
||||||
|
<!-- Password could be specified in plaintext or in SHA256 (in hex format).
|
||||||
|
|
||||||
|
If you want to specify password in plaintext (not recommended), place it in 'password' element.
|
||||||
|
Example: <password>qwerty</password>.
|
||||||
|
Password could be empty.
|
||||||
|
|
||||||
|
If you want to specify SHA256, place it in 'password_sha256_hex' element.
|
||||||
|
Example: <password_sha256_hex>65e84be33532fb784c48129675f9eff3a682b27168c0ea744b2cf58ee02337c5</password_sha256_hex>
|
||||||
|
Restrictions of SHA256: impossibility to connect to ClickHouse using MySQL JS client (as of July 2019).
|
||||||
|
|
||||||
|
If you want to specify double SHA1, place it in 'password_double_sha1_hex' element.
|
||||||
|
Example: <password_double_sha1_hex>e395796d6546b1b65db9d665cd43f0e858dd4303</password_double_sha1_hex>
|
||||||
|
|
||||||
|
How to generate decent password:
|
||||||
|
Execute: PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha256sum | tr -d '-'
|
||||||
|
In first line will be password and in second - corresponding SHA256.
|
||||||
|
|
||||||
|
How to generate double SHA1:
|
||||||
|
Execute: PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | openssl dgst -sha1 -binary | openssl dgst -sha1
|
||||||
|
In first line will be password and in second - corresponding double SHA1.
|
||||||
|
-->
|
||||||
|
<password>secret</password>
|
||||||
|
|
||||||
|
<!-- List of networks with open access.
|
||||||
|
|
||||||
|
To open access from everywhere, specify:
|
||||||
|
<ip>::/0</ip>
|
||||||
|
|
||||||
|
To open access only from localhost, specify:
|
||||||
|
<ip>::1</ip>
|
||||||
|
<ip>127.0.0.1</ip>
|
||||||
|
|
||||||
|
Each element of list has one of the following forms:
|
||||||
|
<ip> IP-address or network mask. Examples: 213.180.204.3 or 10.0.0.1/8 or 10.0.0.1/255.255.255.0
|
||||||
|
2a02:6b8::3 or 2a02:6b8::3/64 or 2a02:6b8::3/ffff:ffff:ffff:ffff::.
|
||||||
|
<host> Hostname. Example: server01.yandex.ru.
|
||||||
|
To check access, DNS query is performed, and all received addresses compared to peer address.
|
||||||
|
<host_regexp> Regular expression for host names. Example, ^server\d\d-\d\d-\d\.yandex\.ru$
|
||||||
|
To check access, DNS PTR query is performed for peer address and then regexp is applied.
|
||||||
|
Then, for result of PTR query, another DNS query is performed and all received addresses compared to peer address.
|
||||||
|
Strongly recommended that regexp is ends with $
|
||||||
|
All results of DNS requests are cached till server restart.
|
||||||
|
-->
|
||||||
|
<networks incl="networks" replace="replace">
|
||||||
|
<ip>::/0</ip>
|
||||||
|
</networks>
|
||||||
|
|
||||||
|
<!-- Settings profile for user. -->
|
||||||
|
<profile>default</profile>
|
||||||
|
|
||||||
|
<!-- Quota for user. -->
|
||||||
|
<quota>default</quota>
|
||||||
|
|
||||||
|
<!-- For testing the table filters -->
|
||||||
|
<databases>
|
||||||
|
<test>
|
||||||
|
<!-- Simple expression filter -->
|
||||||
|
<filtered_table1>
|
||||||
|
<filter>a = 1</filter>
|
||||||
|
</filtered_table1>
|
||||||
|
|
||||||
|
<!-- Complex expression filter -->
|
||||||
|
<filtered_table2>
|
||||||
|
<filter>a + b < 1 or c - d > 5</filter>
|
||||||
|
</filtered_table2>
|
||||||
|
|
||||||
|
<!-- Filter with ALIAS column -->
|
||||||
|
<filtered_table3>
|
||||||
|
<filter>c = 1</filter>
|
||||||
|
</filtered_table3>
|
||||||
|
</test>
|
||||||
|
</databases>
|
||||||
|
</default>
|
||||||
|
|
||||||
|
<!-- Example of user with readonly access. -->
|
||||||
|
<!-- <readonly>
|
||||||
|
<password></password>
|
||||||
|
<networks incl="networks" replace="replace">
|
||||||
|
<ip>::1</ip>
|
||||||
|
<ip>127.0.0.1</ip>
|
||||||
|
</networks>
|
||||||
|
<profile>readonly</profile>
|
||||||
|
<quota>default</quota>
|
||||||
|
</readonly> -->
|
||||||
|
</users>
|
||||||
|
|
||||||
|
<!-- Quotas. -->
|
||||||
|
<quotas>
|
||||||
|
<!-- Name of quota. -->
|
||||||
|
<default>
|
||||||
|
<!-- Limits for time interval. You could specify many intervals with different limits. -->
|
||||||
|
<interval>
|
||||||
|
<!-- Length of interval. -->
|
||||||
|
<duration>3600</duration>
|
||||||
|
|
||||||
|
<!-- No limits. Just calculate resource usage for time interval. -->
|
||||||
|
<queries>0</queries>
|
||||||
|
<errors>0</errors>
|
||||||
|
<result_rows>0</result_rows>
|
||||||
|
<read_rows>0</read_rows>
|
||||||
|
<execution_time>0</execution_time>
|
||||||
|
</interval>
|
||||||
|
</default>
|
||||||
|
</quotas>
|
||||||
|
</yandex>
|
5
dejavu/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM appbaseio/dejavu
|
||||||
|
|
||||||
|
LABEL maintainer="appbase.io <info@appbase.io>"
|
||||||
|
|
||||||
|
EXPOSE 1358
|
10
docker-compose.neo4j.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
neo4j:
|
||||||
|
ports:
|
||||||
|
- '7401:7474'
|
||||||
|
- '7602:7687'
|
||||||
|
environment:
|
||||||
|
- NEO4J_AUTH=none
|
||||||
|
volumes:
|
||||||
|
- '/root/neo4j/data:/data'
|
||||||
|
- '/root/neo4j/logs:/logs'
|
||||||
|
image: 'neo4j:latest'
|
@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: '3.5'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: '3.5'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
frontend:
|
||||||
@ -37,6 +37,8 @@ volumes:
|
|||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
caddy:
|
caddy:
|
||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
meilisearch:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
mosquitto:
|
mosquitto:
|
||||||
@ -45,6 +47,14 @@ volumes:
|
|||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
sonarqube:
|
sonarqube:
|
||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
cassandra:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
graylog:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
docker-in-docker:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
react:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -53,24 +63,42 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./workspace
|
context: ./workspace
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
|
- SHELL_OH_MY_ZSH=${SHELL_OH_MY_ZSH}
|
||||||
|
- SHELL_OH_MY_ZSH_AUTOSUGESTIONS=${SHELL_OH_MY_ZSH_AUTOSUGESTIONS}
|
||||||
|
- SHELL_OH_MY_ZSH_ALIASES=${SHELL_OH_MY_ZSH_ALIASES}
|
||||||
|
- UBUNTU_SOURCE=${UBUNTU_SOURCE}
|
||||||
|
- BASE_IMAGE_TAG_PREFIX=${WORKSPACE_BASE_IMAGE_TAG_PREFIX}
|
||||||
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
|
- INSTALL_SUBVERSION=${WORKSPACE_INSTALL_SUBVERSION}
|
||||||
|
- INSTALL_BZ2=${WORKSPACE_INSTALL_BZ2}
|
||||||
|
- INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
|
||||||
|
- INSTALL_GNUPG=${WORKSPACE_INSTALL_GNUPG}
|
||||||
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
|
||||||
|
- INSTALL_PCOV=${WORKSPACE_INSTALL_PCOV}
|
||||||
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
|
- INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG}
|
||||||
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
||||||
- INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
|
- INSTALL_SSH2=${WORKSPACE_INSTALL_SSH2}
|
||||||
- INSTALL_GMP=${WORKSPACE_INSTALL_GMP}
|
|
||||||
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
- INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
|
||||||
- INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
|
- INSTALL_XSL=${WORKSPACE_INSTALL_XSL}
|
||||||
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
|
- INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP}
|
||||||
|
- INSTALL_SMB=${WORKSPACE_INSTALL_SMB}
|
||||||
- INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP}
|
- INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP}
|
||||||
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
- INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
|
||||||
- INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
|
- INSTALL_AMQP=${WORKSPACE_INSTALL_AMQP}
|
||||||
|
- INSTALL_CASSANDRA=${WORKSPACE_INSTALL_CASSANDRA}
|
||||||
|
- INSTALL_GEARMAN=${WORKSPACE_INSTALL_GEARMAN}
|
||||||
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
|
- INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
|
||||||
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
|
||||||
|
- NVM_NODEJS_ORG_MIRROR=${WORKSPACE_NVM_NODEJS_ORG_MIRROR}
|
||||||
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
- INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
|
||||||
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
|
- NPM_REGISTRY=${WORKSPACE_NPM_REGISTRY}
|
||||||
|
- NPM_FETCH_RETRIES=${WORKSPACE_NPM_FETCH_RETRIES}
|
||||||
|
- NPM_FETCH_RETRY_FACTOR=${WORKSPACE_NPM_FETCH_RETRY_FACTOR}
|
||||||
|
- NPM_FETCH_RETRY_MINTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MINTIMEOUT}
|
||||||
|
- NPM_FETCH_RETRY_MAXTIMEOUT=${WORKSPACE_NPM_FETCH_RETRY_MAXTIMEOUT}
|
||||||
|
- INSTALL_PNPM=${WORKSPACE_INSTALL_PNPM}
|
||||||
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
- INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
|
||||||
- INSTALL_NPM_GULP=${WORKSPACE_INSTALL_NPM_GULP}
|
- INSTALL_NPM_GULP=${WORKSPACE_INSTALL_NPM_GULP}
|
||||||
- INSTALL_NPM_BOWER=${WORKSPACE_INSTALL_NPM_BOWER}
|
- INSTALL_NPM_BOWER=${WORKSPACE_INSTALL_NPM_BOWER}
|
||||||
@ -80,8 +108,10 @@ services:
|
|||||||
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
||||||
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
||||||
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
||||||
|
- INSTALL_OCI8=${WORKSPACE_INSTALL_OCI8}
|
||||||
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
||||||
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
||||||
|
- COMPOSER_VERSION=${WORKSPACE_COMPOSER_VERSION}
|
||||||
- COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
|
- COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
|
||||||
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
|
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
|
||||||
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
|
- INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
|
||||||
@ -93,6 +123,7 @@ services:
|
|||||||
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
|
- INSTALL_MC=${WORKSPACE_INSTALL_MC}
|
||||||
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
|
- INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
|
||||||
- INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
|
- INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON}
|
||||||
|
- INSTALL_PYTHON3=${WORKSPACE_INSTALL_PYTHON3}
|
||||||
- INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
|
- INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS}
|
||||||
- INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK}
|
- INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK}
|
||||||
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
- INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM}
|
||||||
@ -102,35 +133,63 @@ services:
|
|||||||
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
|
- INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE}
|
||||||
- INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
|
- INSTALL_TAINT=${WORKSPACE_INSTALL_TAINT}
|
||||||
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
||||||
|
- INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
|
||||||
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
||||||
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
||||||
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
||||||
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
||||||
|
- INSTALL_INOTIFY=${WORKSPACE_INSTALL_INOTIFY}
|
||||||
|
- INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
|
||||||
|
- INSTALL_AST=${WORKSPACE_INSTALL_AST}
|
||||||
|
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
|
||||||
|
- INSTALL_RDKAFKA=${WORKSPACE_INSTALL_RDKAFKA}
|
||||||
|
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
|
||||||
|
- INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT}
|
||||||
|
- INSTALL_XMLRPC=${WORKSPACE_INSTALL_XMLRPC}
|
||||||
- PUID=${WORKSPACE_PUID}
|
- PUID=${WORKSPACE_PUID}
|
||||||
- PGID=${WORKSPACE_PGID}
|
- PGID=${WORKSPACE_PGID}
|
||||||
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
|
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
|
||||||
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
|
||||||
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
|
||||||
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
|
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
|
||||||
|
- AST_VERSION=${WORKSPACE_AST_VERSION}
|
||||||
|
- IMAGEMAGICK_VERSION=${WORKSPACE_IMAGEMAGICK_VERSION}
|
||||||
- TZ=${WORKSPACE_TIMEZONE}
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
|
||||||
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
|
||||||
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
|
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
|
||||||
|
- INSTALL_SUPERVISOR=${WORKSPACE_INSTALL_SUPERVISOR}
|
||||||
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
|
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
|
||||||
|
- INSTALL_AUDIOWAVEFORM=${WORKSPACE_INSTALL_AUDIOWAVEFORM}
|
||||||
|
- INSTALL_WKHTMLTOPDF=${WORKSPACE_INSTALL_WKHTMLTOPDF}
|
||||||
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
|
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
|
||||||
|
- INSTALL_LNAV=${WORKSPACE_INSTALL_LNAV}
|
||||||
|
- INSTALL_PROTOC=${WORKSPACE_INSTALL_PROTOC}
|
||||||
|
- PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION}
|
||||||
|
- INSTALL_DOCKER_CLIENT=${WORKSPACE_INSTALL_DOCKER_CLIENT}
|
||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
|
- docker-in-docker:/certs/client
|
||||||
|
- ./php-worker/supervisord.d:/etc/supervisord.d
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
ports:
|
ports:
|
||||||
- "${WORKSPACE_SSH_PORT}:22"
|
- "${WORKSPACE_SSH_PORT}:22"
|
||||||
|
- "${WORKSPACE_BROWSERSYNC_HOST_PORT}:3000"
|
||||||
|
- "${WORKSPACE_BROWSERSYNC_UI_HOST_PORT}:3001"
|
||||||
|
- "${WORKSPACE_VUE_CLI_SERVE_HOST_PORT}:8080"
|
||||||
|
- "${WORKSPACE_VUE_CLI_UI_HOST_PORT}:8000"
|
||||||
|
- "${WORKSPACE_ANGULAR_CLI_SERVE_HOST_PORT}:4200"
|
||||||
tty: true
|
tty: true
|
||||||
environment:
|
environment:
|
||||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||||
- DOCKER_HOST=tcp://docker-in-docker:2375
|
- DOCKER_HOST=tcp://docker-in-docker:2376
|
||||||
|
- DOCKER_TLS_VERIFY=1
|
||||||
|
- DOCKER_TLS_CERTDIR=/certs
|
||||||
|
- DOCKER_CERT_PATH=/certs/client
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
@ -142,25 +201,34 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./php-fpm
|
context: ./php-fpm
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
|
- BASE_IMAGE_TAG_PREFIX=${PHP_FPM_BASE_IMAGE_TAG_PREFIX}
|
||||||
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
|
- INSTALL_BZ2=${PHP_FPM_INSTALL_BZ2}
|
||||||
|
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
|
||||||
|
- INSTALL_GNUPG=${PHP_FPM_INSTALL_GNUPG}
|
||||||
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
|
- INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG}
|
||||||
|
- INSTALL_PCOV=${PHP_FPM_INSTALL_PCOV}
|
||||||
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
|
- INSTALL_PHPDBG=${PHP_FPM_INSTALL_PHPDBG}
|
||||||
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
- INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
|
||||||
- INSTALL_SSH2=${PHP_FPM_INSTALL_SSH2}
|
- INSTALL_SSH2=${PHP_FPM_INSTALL_SSH2}
|
||||||
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
|
- INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP}
|
||||||
- INSTALL_XSL=${PHP_FPM_INSTALL_XSL}
|
- INSTALL_XSL=${PHP_FPM_INSTALL_XSL}
|
||||||
|
- INSTALL_SMB=${PHP_FPM_INSTALL_SMB}
|
||||||
- INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP}
|
- INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP}
|
||||||
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
|
- INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO}
|
||||||
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
|
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
|
||||||
|
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
|
||||||
|
- INSTALL_GEARMAN=${PHP_FPM_INSTALL_GEARMAN}
|
||||||
- INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}
|
||||||
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
||||||
- INSTALL_GMP=${PHP_FPM_INSTALL_GMP}
|
|
||||||
- INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
|
- INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
|
||||||
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
|
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
|
||||||
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
||||||
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
||||||
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
||||||
|
- INSTALL_OCI8=${PHP_FPM_INSTALL_OCI8}
|
||||||
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
||||||
@ -177,27 +245,50 @@ services:
|
|||||||
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
|
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
|
||||||
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
|
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
|
||||||
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
- INSTALL_APCU=${PHP_FPM_INSTALL_APCU}
|
||||||
|
- INSTALL_CACHETOOL=${PHP_FPM_INSTALL_CACHETOOL}
|
||||||
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
||||||
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
- INSTALL_RDKAFKA=${PHP_FPM_INSTALL_RDKAFKA}
|
||||||
|
- INSTALL_GETTEXT=${PHP_FPM_INSTALL_GETTEXT}
|
||||||
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
||||||
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
||||||
- INSTALL_PING=${PHP_FPM_INSTALL_PING}
|
- INSTALL_PING=${PHP_FPM_INSTALL_PING}
|
||||||
- INSTALL_SSHPASS=${PHP_FPM_INSTALL_SSHPASS}
|
- INSTALL_SSHPASS=${PHP_FPM_INSTALL_SSHPASS}
|
||||||
|
- INSTALL_MAILPARSE=${PHP_FPM_INSTALL_MAILPARSE}
|
||||||
|
- INSTALL_PCNTL=${PHP_FPM_INSTALL_PCNTL}
|
||||||
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
||||||
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
|
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
|
||||||
|
- INSTALL_AUDIOWAVEFORM=${PHP_FPM_AUDIOWAVEFORM}
|
||||||
|
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
|
||||||
|
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
||||||
|
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
|
||||||
|
- DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=${PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL}
|
||||||
|
- PUID=${PHP_FPM_PUID}
|
||||||
|
- PGID=${PHP_FPM_PGID}
|
||||||
|
- IMAGEMAGICK_VERSION=${PHP_FPM_IMAGEMAGICK_VERSION}
|
||||||
|
- LOCALE=${PHP_FPM_DEFAULT_LOCALE}
|
||||||
|
- PHP_FPM_NEW_RELIC=${PHP_FPM_NEW_RELIC}
|
||||||
|
- PHP_FPM_NEW_RELIC_KEY=${PHP_FPM_NEW_RELIC_KEY}
|
||||||
|
- PHP_FPM_NEW_RELIC_APP_NAME=${PHP_FPM_NEW_RELIC_APP_NAME}
|
||||||
|
- INSTALL_DOCKER_CLIENT=${PHP_FPM_INSTALL_DOCKER_CLIENT}
|
||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
volumes:
|
volumes:
|
||||||
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
|
- docker-in-docker:/certs/client
|
||||||
|
ports:
|
||||||
|
- "${PHP_FPM_XDEBUG_PORT}:9003"
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
environment:
|
environment:
|
||||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||||
- DOCKER_HOST=tcp://docker-in-docker:2375
|
- DOCKER_HOST=tcp://docker-in-docker:2376
|
||||||
|
- DOCKER_TLS_VERIFY=1
|
||||||
|
- DOCKER_TLS_CERTDIR=/certs
|
||||||
|
- DOCKER_CERT_PATH=/certs/client
|
||||||
- FAKETIME=${PHP_FPM_FAKETIME}
|
- FAKETIME=${PHP_FPM_FAKETIME}
|
||||||
depends_on:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
@ -211,22 +302,36 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./php-worker
|
context: ./php-worker
|
||||||
args:
|
args:
|
||||||
- PHP_VERSION=${PHP_VERSION}
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- PHALCON_VERSION=${PHALCON_VERSION}
|
- PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
|
- INSTALL_BZ2=${PHP_WORKER_INSTALL_BZ2}
|
||||||
|
- INSTALL_GD=${PHP_WORKER_INSTALL_GD}
|
||||||
|
- INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK}
|
||||||
|
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
|
||||||
|
- INSTALL_GNUPG=${PHP_WORKER_INSTALL_GNUPG}
|
||||||
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
||||||
|
- INSTALL_MONGO=${PHP_WORKER_INSTALL_MONGO}
|
||||||
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
|
||||||
|
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
|
||||||
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
||||||
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
||||||
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
||||||
- INSTALL_MYSQL_CLIENT=${PHP_WORKER_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${PHP_WORKER_INSTALL_MYSQL_CLIENT}
|
||||||
- INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP}
|
- INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP}
|
||||||
|
- INSTALL_CASSANDRA=${PHP_WORKER_INSTALL_CASSANDRA}
|
||||||
|
- INSTALL_GEARMAN=${PHP_WORKER_INSTALL_GEARMAN}
|
||||||
- INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT}
|
- INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT}
|
||||||
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
|
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
|
||||||
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
|
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
|
||||||
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
||||||
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
|
- INSTALL_AUDIOWAVEFORM=${PHP_WORKER_INSTALL_AUDIOWAVEFORM}
|
||||||
|
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
|
||||||
|
- INSTALL_IMAP=${PHP_WORKER_INSTALL_IMAP}
|
||||||
|
- INSTALL_XMLRPC=${PHP_WORKER_INSTALL_XMLRPC}
|
||||||
- PUID=${PHP_WORKER_PUID}
|
- PUID=${PHP_WORKER_PUID}
|
||||||
- PGID=${PHP_WORKER_PGID}
|
- PGID=${PHP_WORKER_PGID}
|
||||||
|
- IMAGEMAGICK_VERSION=${PHP_WORKER_IMAGEMAGICK_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
- ./php-worker/supervisord.d:/etc/supervisord.d
|
- ./php-worker/supervisord.d:/etc/supervisord.d
|
||||||
@ -241,10 +346,27 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./laravel-horizon
|
context: ./laravel-horizon
|
||||||
args:
|
args:
|
||||||
- PHP_VERSION=${PHP_VERSION}
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
|
- INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
|
||||||
|
- INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD}
|
||||||
|
- INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
|
||||||
|
- INSTALL_GNUPG=${LARAVEL_HORIZON_INSTALL_GNUPG}
|
||||||
|
- INSTALL_IMAGEMAGICK=${LARAVEL_HORIZON_INSTALL_IMAGEMAGICK}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
|
- INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE}
|
||||||
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
||||||
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
|
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
|
||||||
|
- INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
|
||||||
|
- INSTALL_YAML=${LARAVEL_HORIZON_INSTALL_YAML}
|
||||||
|
- INSTALL_CASSANDRA=${LARAVEL_HORIZON_INSTALL_CASSANDRA}
|
||||||
|
- INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS}
|
||||||
|
- INSTALL_MONGO=${LARAVEL_HORIZON_INSTALL_MONGO}
|
||||||
|
- INSTALL_FFMPEG=${LARAVEL_HORIZON_INSTALL_FFMPEG}
|
||||||
|
- INSTALL_AUDIOWAVEFORM=${LARAVEL_HORIZON_INSTALL_AUDIOWAVEFORM}
|
||||||
|
- PUID=${LARAVEL_HORIZON_PUID}
|
||||||
|
- PGID=${LARAVEL_HORIZON_PGID}
|
||||||
|
- IMAGEMAGICK_VERSION=${LARAVEL_HORIZON_IMAGEMAGICK_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
||||||
- ./laravel-horizon/supervisord.d:/etc/supervisord.d
|
- ./laravel-horizon/supervisord.d:/etc/supervisord.d
|
||||||
@ -260,9 +382,9 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./nginx
|
context: ./nginx
|
||||||
args:
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
|
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
|
||||||
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
||||||
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
|
||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
@ -274,6 +396,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${NGINX_HOST_HTTP_PORT}:80"
|
- "${NGINX_HOST_HTTP_PORT}:80"
|
||||||
- "${NGINX_HOST_HTTPS_PORT}:443"
|
- "${NGINX_HOST_HTTPS_PORT}:443"
|
||||||
|
- "${VARNISH_BACKEND_PORT}:81"
|
||||||
depends_on:
|
depends_on:
|
||||||
- php-fpm
|
- php-fpm
|
||||||
networks:
|
networks:
|
||||||
@ -300,10 +423,12 @@ services:
|
|||||||
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
|
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
|
||||||
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
|
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
|
||||||
- DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
|
- DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
|
||||||
|
- APACHE_INSTALL_HTTP2=${APACHE_INSTALL_HTTP2}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
|
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
|
||||||
- ${APACHE_SITES_PATH}:/etc/apache2/sites-available
|
- ${APACHE_SITES_PATH}:/etc/apache2/sites-available
|
||||||
|
- ${APACHE_SSL_PATH}:/etc/apache2/ssl
|
||||||
ports:
|
ports:
|
||||||
- "${APACHE_HOST_HTTP_PORT}:80"
|
- "${APACHE_HOST_HTTP_PORT}:80"
|
||||||
- "${APACHE_HOST_HTTPS_PORT}:443"
|
- "${APACHE_HOST_HTTPS_PORT}:443"
|
||||||
@ -383,6 +508,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./mssql
|
context: ./mssql
|
||||||
environment:
|
environment:
|
||||||
|
- MSSQL_PID=Express
|
||||||
- MSSQL_DATABASE=${MSSQL_DATABASE}
|
- MSSQL_DATABASE=${MSSQL_DATABASE}
|
||||||
- SA_PASSWORD=${MSSQL_PASSWORD}
|
- SA_PASSWORD=${MSSQL_PASSWORD}
|
||||||
- ACCEPT_EULA=Y
|
- ACCEPT_EULA=Y
|
||||||
@ -401,12 +527,14 @@ services:
|
|||||||
- http_proxy
|
- http_proxy
|
||||||
- https_proxy
|
- https_proxy
|
||||||
- no_proxy
|
- no_proxy
|
||||||
|
- MARIADB_VERSION=${MARIADB_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
|
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
|
||||||
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- "${MARIADB_PORT}:3306"
|
- "${MARIADB_PORT}:3306"
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=${WORKSPACE_TIMEZONE}
|
||||||
- MYSQL_DATABASE=${MARIADB_DATABASE}
|
- MYSQL_DATABASE=${MARIADB_DATABASE}
|
||||||
- MYSQL_USER=${MARIADB_USER}
|
- MYSQL_USER=${MARIADB_USER}
|
||||||
- MYSQL_PASSWORD=${MARIADB_PASSWORD}
|
- MYSQL_PASSWORD=${MARIADB_PASSWORD}
|
||||||
@ -416,7 +544,10 @@ services:
|
|||||||
|
|
||||||
### PostgreSQL ###########################################
|
### PostgreSQL ###########################################
|
||||||
postgres:
|
postgres:
|
||||||
build: ./postgres
|
build:
|
||||||
|
context: ./postgres
|
||||||
|
args:
|
||||||
|
- POSTGRES_VERSION=${POSTGRES_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
|
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
|
||||||
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
- ${POSTGRES_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
@ -461,14 +592,15 @@ services:
|
|||||||
|
|
||||||
### Neo4j ################################################
|
### Neo4j ################################################
|
||||||
neo4j:
|
neo4j:
|
||||||
build: ./neo4j
|
|
||||||
ports:
|
ports:
|
||||||
- "7474:7474"
|
- '7401:7474'
|
||||||
- "1337:1337"
|
- '7402:7687'
|
||||||
environment:
|
environment:
|
||||||
- NEO4J_AUTH=default:secret
|
- NEO4J_AUTH=none
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/neo4j:/var/lib/neo4j/data
|
- ${DATA_PATH_HOST}/neo4j/data:/data
|
||||||
|
- ${DATA_PATH_HOST}/neo4j/logs:/logs
|
||||||
|
image: 'neo4j:latest'
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
@ -479,6 +611,7 @@ services:
|
|||||||
- "${MONGODB_PORT}:27017"
|
- "${MONGODB_PORT}:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/mongo:/data/db
|
- ${DATA_PATH_HOST}/mongo:/data/db
|
||||||
|
- ${DATA_PATH_HOST}/mongo_config:/data/configdb
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
@ -492,7 +625,38 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
### Redis ################################################
|
### ClickHouse #############################################
|
||||||
|
clickhouse:
|
||||||
|
build:
|
||||||
|
context: ./clickhouse
|
||||||
|
args:
|
||||||
|
- CLICKHOUSE_VERSION=${CLICKHOUSE_VERSION}
|
||||||
|
- CLICKHOUSE_GOSU_VERSION=${CLICKHOUSE_GOSU_VERSION}
|
||||||
|
environment:
|
||||||
|
- CLICKHOUSE_USER=${CLICKHOUSE_USER}
|
||||||
|
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/clickhouse:/var/lib/clickhouse
|
||||||
|
- ${CLICKHOUSE_CUSTOM_CONFIG}:/etc/clickhouse-server/config.xml
|
||||||
|
- ${CLICKHOUSE_USERS_CUSTOM_CONFIG}:/etc/clickhouse-server/users.xml
|
||||||
|
- ${CLICKHOUSE_HOST_LOG_PATH}:/var/log/clickhouse
|
||||||
|
- ${CLICKHOUSE_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
|
||||||
|
links:
|
||||||
|
- workspace
|
||||||
|
ports:
|
||||||
|
- "${CLICKHOUSE_HTTP_PORT}:8123"
|
||||||
|
- "${CLICKHOUSE_CLIENT_PORT}:9000"
|
||||||
|
- "${CLICKHOUSE_NATIVE_PORT}:9009"
|
||||||
|
ulimits:
|
||||||
|
nproc: 65535
|
||||||
|
nofile:
|
||||||
|
soft: 262144
|
||||||
|
hard: 262144
|
||||||
|
networks:
|
||||||
|
# - frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### Redis ################################################
|
||||||
redis:
|
redis:
|
||||||
build: ./redis
|
build: ./redis
|
||||||
volumes:
|
volumes:
|
||||||
@ -562,6 +726,20 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### SQS #############################################
|
||||||
|
sqs:
|
||||||
|
build: ./sqs
|
||||||
|
ports:
|
||||||
|
- "${SQS_NODE_HOST_PORT}:9324"
|
||||||
|
- "${SQS_MANAGEMENT_HTTP_HOST_PORT}:9325"
|
||||||
|
privileged: true
|
||||||
|
hostname: laradock-sqs
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/sqs:/opt/custom
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### RabbitMQ #############################################
|
### RabbitMQ #############################################
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
build: ./rabbitmq
|
build: ./rabbitmq
|
||||||
@ -581,6 +759,89 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### Mercure #############################################
|
||||||
|
mercure:
|
||||||
|
build: ./mercure
|
||||||
|
ports:
|
||||||
|
- "${MERCURE_NODE_HOST_HTTP_PORT}:80"
|
||||||
|
- "${MERCURE_NODE_HOST_HTTPS_PORT}:443"
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
- MERCURE_PUBLISHER_JWT_KEY=${MERCURE_PUBLISHER_JWT_KEY}
|
||||||
|
- MERCURE_SUBSCRIBER_JWT_KEY=${MERCURE_SUBSCRIBER_JWT_KEY}
|
||||||
|
- DEBUG=${MERCURE_DEBUG}
|
||||||
|
- SERVER_NAME=${MERCURE_SERVER_NAME}
|
||||||
|
- MERCURE_EXTRA_DIRECTIVES=cors_allowed_origins *\npublish_allowed_origins http://localhost:${MERCURE_NODE_HOST_HTTP_PORT} https://localhost:${MERCURE_NODE_HOST_HTTP_PORT}
|
||||||
|
hostname: laradock-mercure
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### Cassandra ############################################
|
||||||
|
cassandra:
|
||||||
|
build: ./cassandra
|
||||||
|
ports:
|
||||||
|
- "${CASSANDRA_TRANSPORT_PORT_NUMBER}:7000"
|
||||||
|
- "${CASSANDRA_JMX_PORT_NUMBER}:7199"
|
||||||
|
- "${CASSANDRA_CQL_PORT_NUMBER}:9042"
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
- CASSANDRA_VERSION=${CASSANDRA_VERSION}
|
||||||
|
- CASSANDRA_TRANSPORT_PORT_NUMBER=${CASSANDRA_TRANSPORT_PORT_NUMBER}
|
||||||
|
- CASSANDRA_JMX_PORT_NUMBER=${CASSANDRA_JMX_PORT_NUMBER}
|
||||||
|
- CASSANDRA_CQL_PORT_NUMBER=${CASSANDRA_CQL_PORT_NUMBER}
|
||||||
|
- CASSANDRA_USER=${CASSANDRA_USER}
|
||||||
|
- CASSANDRA_PASSWORD_SEEDER=${CASSANDRA_PASSWORD_SEEDER}
|
||||||
|
- CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD}
|
||||||
|
- CASSANDRA_NUM_TOKENS=${CASSANDRA_NUM_TOKENS}
|
||||||
|
- CASSANDRA_HOST=${CASSANDRA_HOST}
|
||||||
|
- CASSANDRA_CLUSTER_NAME=${CASSANDRA_CLUSTER_NAME}
|
||||||
|
- CASSANDRA_SEEDS=${CASSANDRA_SEEDS}
|
||||||
|
- CASSANDRA_ENDPOINT_SNITCH=${CASSANDRA_ENDPOINT_SNITCH}
|
||||||
|
- CASSANDRA_ENABLE_RPC=${CASSANDRA_ENABLE_RPC}
|
||||||
|
- CASSANDRA_DATACENTER=${CASSANDRA_DATACENTER}
|
||||||
|
- CASSANDRA_RACK=${CASSANDRA_RACK}
|
||||||
|
hostname: laradock-cassandra
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/cassandra:/var/lib/cassandra
|
||||||
|
depends_on:
|
||||||
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### Gearman ############################################
|
||||||
|
gearman:
|
||||||
|
build: ./gearman
|
||||||
|
ports:
|
||||||
|
- "${GEARMAN_PORT}:4730"
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
- GEARMAN_VERSION=${GEARMAN_VERSION}
|
||||||
|
- GEARMAN_VERBOSE=${GEARMAN_VERBOSE}
|
||||||
|
- GEARMAN_QUEUE_TYPE=${GEARMAN_QUEUE_TYPE}
|
||||||
|
- GEARMAN_THREADS=${GEARMAN_THREADS}
|
||||||
|
- GEARMAN_BACKLOG=${GEARMAN_BACKLOG}
|
||||||
|
- GEARMAN_FILE_DESCRIPTORS=${GEARMAN_FILE_DESCRIPTORS}
|
||||||
|
- GEARMAN_JOB_RETRIES=${GEARMAN_JOB_RETRIES}
|
||||||
|
- GEARMAN_ROUND_ROBIN=${GEARMAN_ROUND_ROBIN}
|
||||||
|
- GEARMAN_WORKER_WAKEUP=${GEARMAN_WORKER_WAKEUP}
|
||||||
|
- GEARMAN_KEEPALIVE=${GEARMAN_KEEPALIVE}
|
||||||
|
- GEARMAN_KEEPALIVE_IDLE=${GEARMAN_KEEPALIVE_IDLE}
|
||||||
|
- GEARMAN_KEEPALIVE_INTERVAL=${GEARMAN_KEEPALIVE_INTERVAL}
|
||||||
|
- GEARMAN_KEEPALIVE_COUNT=${GEARMAN_KEEPALIVE_COUNT}
|
||||||
|
- GEARMAN_MYSQL_HOST=${GEARMAN_MYSQL_HOST}
|
||||||
|
- GEARMAN_MYSQL_PORT=${GEARMAN_MYSQL_PORT}
|
||||||
|
- GEARMAN_MYSQL_USER=${GEARMAN_MYSQL_USER}
|
||||||
|
- GEARMAN_MYSQL_PASSWORD=${GEARMAN_MYSQL_PASSWORD}
|
||||||
|
- GEARMAN_MYSQL_PASSWORD_FILE=${GEARMAN_MYSQL_PASSWORD_FILE}
|
||||||
|
- GEARMAN_MYSQL_DB=${GEARMAN_MYSQL_DB}
|
||||||
|
- GEARMAN_MYSQL_TABLE=${GEARMAN_MYSQL_TABLE}
|
||||||
|
hostname: laradock-gearman
|
||||||
|
depends_on:
|
||||||
|
- php-fpm
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### Beanstalkd Console ###################################
|
### Beanstalkd Console ###################################
|
||||||
beanstalkd-console:
|
beanstalkd-console:
|
||||||
build: ./beanstalkd-console
|
build: ./beanstalkd-console
|
||||||
@ -616,6 +877,9 @@ services:
|
|||||||
- MYSQL_USER=${PMA_USER}
|
- MYSQL_USER=${PMA_USER}
|
||||||
- MYSQL_PASSWORD=${PMA_PASSWORD}
|
- MYSQL_PASSWORD=${PMA_PASSWORD}
|
||||||
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
|
||||||
|
- MAX_EXECUTION_TIME=${PMA_MAX_EXECUTION_TIME}
|
||||||
|
- MEMORY_LIMIT=${PMA_MEMORY_LIMIT}
|
||||||
|
- UPLOAD_LIMIT=${PMA_UPLOAD_LIMIT}
|
||||||
ports:
|
ports:
|
||||||
- "${PMA_PORT}:80"
|
- "${PMA_PORT}:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -630,6 +894,10 @@ services:
|
|||||||
context: ./adminer
|
context: ./adminer
|
||||||
args:
|
args:
|
||||||
- INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
|
- INSTALL_MSSQL=${ADM_INSTALL_MSSQL}
|
||||||
|
environment:
|
||||||
|
- ADMINER_PLUGINS=${ADM_PLUGINS}
|
||||||
|
- ADMINER_DESIGN=${ADM_DESIGN}
|
||||||
|
- ADMINER_DEFAULT_SERVER=${ADM_DEFAULT_SERVER}
|
||||||
ports:
|
ports:
|
||||||
- "${ADM_PORT}:8080"
|
- "${ADM_PORT}:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -654,19 +922,38 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### MeiliSearch ##########################################
|
||||||
|
meilisearch:
|
||||||
|
image: getmeili/meilisearch:latest
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/meilisearch:/var/lib/meilisearch
|
||||||
|
ports:
|
||||||
|
- "${MEILISEARCH_HOST_PORT}:7700"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### ElasticSearch ########################################
|
### ElasticSearch ########################################
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
build: ./elasticsearch
|
build:
|
||||||
|
context: ./elasticsearch
|
||||||
|
args:
|
||||||
|
- ELK_VERSION=${ELK_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- elasticsearch:/usr/share/elasticsearch/data
|
- elasticsearch:/usr/share/elasticsearch/data
|
||||||
environment:
|
environment:
|
||||||
- cluster.name=laradock-cluster
|
- cluster.name=laradock-cluster
|
||||||
|
- node.name=laradock-node
|
||||||
- bootstrap.memory_lock=true
|
- bootstrap.memory_lock=true
|
||||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||||
|
- cluster.initial_master_nodes=laradock-node
|
||||||
ulimits:
|
ulimits:
|
||||||
memlock:
|
memlock:
|
||||||
soft: -1
|
soft: -1
|
||||||
hard: -1
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
ports:
|
ports:
|
||||||
- "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
|
- "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
|
||||||
- "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
|
- "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
|
||||||
@ -678,7 +965,10 @@ services:
|
|||||||
|
|
||||||
### Logstash ##############################################
|
### Logstash ##############################################
|
||||||
logstash:
|
logstash:
|
||||||
build: ./logstash
|
build:
|
||||||
|
context: ./logstash
|
||||||
|
args:
|
||||||
|
- ELK_VERSION=${ELK_VERSION}
|
||||||
volumes:
|
volumes:
|
||||||
- './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
|
- './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
|
||||||
- './logstash/pipeline:/usr/share/logstash/pipeline'
|
- './logstash/pipeline:/usr/share/logstash/pipeline'
|
||||||
@ -696,7 +986,10 @@ services:
|
|||||||
|
|
||||||
### Kibana ##############################################
|
### Kibana ##############################################
|
||||||
kibana:
|
kibana:
|
||||||
build: ./kibana
|
build:
|
||||||
|
context: ./kibana
|
||||||
|
args:
|
||||||
|
- ELK_VERSION=${ELK_VERSION}
|
||||||
ports:
|
ports:
|
||||||
- "${KIBANA_HTTP_PORT}:5601"
|
- "${KIBANA_HTTP_PORT}:5601"
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -705,6 +998,18 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### Dejavu ##############################################
|
||||||
|
dejavu:
|
||||||
|
build:
|
||||||
|
context: ./dejavu
|
||||||
|
ports:
|
||||||
|
- "${DEJAVU_HTTP_PORT}:1358"
|
||||||
|
depends_on:
|
||||||
|
- elasticsearch
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### Certbot #########################################
|
### Certbot #########################################
|
||||||
certbot:
|
certbot:
|
||||||
build:
|
build:
|
||||||
@ -718,6 +1023,16 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
|
### MailCatcher ################################################
|
||||||
|
mailcatcher:
|
||||||
|
build: ./mailcatcher
|
||||||
|
ports:
|
||||||
|
- "1025:1025"
|
||||||
|
- "1080:1080"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
|
||||||
### Mailhog ################################################
|
### Mailhog ################################################
|
||||||
mailhog:
|
mailhog:
|
||||||
build: ./mailhog
|
build: ./mailhog
|
||||||
@ -750,6 +1065,7 @@ services:
|
|||||||
|
|
||||||
### Varnish ##########################################
|
### Varnish ##########################################
|
||||||
proxy:
|
proxy:
|
||||||
|
container_name: proxy
|
||||||
build: ./varnish
|
build: ./varnish
|
||||||
expose:
|
expose:
|
||||||
- ${VARNISH_PORT}
|
- ${VARNISH_PORT}
|
||||||
@ -761,12 +1077,15 @@ services:
|
|||||||
- BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST}
|
- BACKEND_HOST=${VARNISH_PROXY1_BACKEND_HOST}
|
||||||
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
||||||
- VARNISH_SERVER=${VARNISH_PROXY1_SERVER}
|
- VARNISH_SERVER=${VARNISH_PROXY1_SERVER}
|
||||||
|
ports:
|
||||||
|
- "${VARNISH_PORT}:${VARNISH_PORT}"
|
||||||
links:
|
links:
|
||||||
- workspace
|
- workspace
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
proxy2:
|
proxy2:
|
||||||
|
container_name: proxy2
|
||||||
build: ./varnish
|
build: ./varnish
|
||||||
expose:
|
expose:
|
||||||
- ${VARNISH_PORT}
|
- ${VARNISH_PORT}
|
||||||
@ -778,6 +1097,8 @@ services:
|
|||||||
- BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST}
|
- BACKEND_HOST=${VARNISH_PROXY2_BACKEND_HOST}
|
||||||
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
- BACKEND_PORT=${VARNISH_BACKEND_PORT}
|
||||||
- VARNISH_SERVER=${VARNISH_PROXY2_SERVER}
|
- VARNISH_SERVER=${VARNISH_PROXY2_SERVER}
|
||||||
|
ports:
|
||||||
|
- "${VARNISH_PORT}:${VARNISH_PORT}"
|
||||||
links:
|
links:
|
||||||
- workspace
|
- workspace
|
||||||
networks:
|
networks:
|
||||||
@ -823,38 +1144,40 @@ services:
|
|||||||
|
|
||||||
### Graylog #######################################
|
### Graylog #######################################
|
||||||
graylog:
|
graylog:
|
||||||
build: ./graylog
|
build: ./graylog
|
||||||
environment:
|
environment:
|
||||||
- GRAYLOG_PASSWORD_SECRET=${GRAYLOG_PASSWORD}
|
- GRAYLOG_PASSWORD_SECRET=${GRAYLOG_PASSWORD}
|
||||||
- GRAYLOG_ROOT_PASSWORD_SHA2=${GRAYLOG_SHA256_PASSWORD}
|
- GRAYLOG_ROOT_PASSWORD_SHA2=${GRAYLOG_SHA256_PASSWORD}
|
||||||
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:${GRAYLOG_PORT}/
|
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:${GRAYLOG_PORT}/
|
||||||
links:
|
links:
|
||||||
- mongo
|
- mongo
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
ports:
|
ports:
|
||||||
# Graylog web interface and REST API
|
# Graylog web interface and REST API
|
||||||
- ${GRAYLOG_PORT}:9000
|
- ${GRAYLOG_PORT}:9000
|
||||||
# Syslog TCP
|
# Syslog TCP
|
||||||
- ${GRAYLOG_SYSLOG_TCP_PORT}:514
|
- ${GRAYLOG_SYSLOG_TCP_PORT}:514
|
||||||
# Syslog UDP
|
# Syslog UDP
|
||||||
- ${GRAYLOG_SYSLOG_UDP_PORT}:514/udp
|
- ${GRAYLOG_SYSLOG_UDP_PORT}:514/udp
|
||||||
# GELF TCP
|
# GELF TCP
|
||||||
- ${GRAYLOG_GELF_TCP_PORT}:12201
|
- ${GRAYLOG_GELF_TCP_PORT}:12201
|
||||||
# GELF UDP
|
# GELF UDP
|
||||||
- ${GRAYLOG_GELF_UDP_PORT}:12201/udp
|
- ${GRAYLOG_GELF_UDP_PORT}:12201/udp
|
||||||
user: root
|
user: graylog
|
||||||
volumes:
|
volumes:
|
||||||
- ./graylog/config:/usr/share/graylog/data/config
|
- ${DATA_PATH_HOST}/graylog:/usr/share/graylog/data
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
### Laravel Echo Server #######################################
|
### Laravel Echo Server #######################################
|
||||||
laravel-echo-server:
|
laravel-echo-server:
|
||||||
build:
|
build:
|
||||||
context: ./laravel-echo-server
|
context: ./laravel-echo-server
|
||||||
|
args:
|
||||||
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
volumes:
|
volumes:
|
||||||
- ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
|
- ./laravel-echo-server/laravel-echo-server.json:/app/laravel-echo-server.json:ro
|
||||||
ports:
|
ports:
|
||||||
@ -999,7 +1322,7 @@ services:
|
|||||||
### AWS EB-CLI ################################################
|
### AWS EB-CLI ################################################
|
||||||
aws:
|
aws:
|
||||||
build:
|
build:
|
||||||
context: ./aws
|
context: ./aws-eb-cli
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -1123,10 +1446,13 @@ services:
|
|||||||
|
|
||||||
### Docker-in-Docker ################################################
|
### Docker-in-Docker ################################################
|
||||||
docker-in-docker:
|
docker-in-docker:
|
||||||
image: docker:dind
|
image: docker:19.03-dind
|
||||||
|
environment:
|
||||||
|
DOCKER_TLS_SAN: DNS:docker-in-docker
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
||||||
|
- docker-in-docker:/certs/client
|
||||||
expose:
|
expose:
|
||||||
- 2375
|
- 2375
|
||||||
networks:
|
networks:
|
||||||
@ -1134,11 +1460,13 @@ services:
|
|||||||
|
|
||||||
### NetData ################################################
|
### NetData ################################################
|
||||||
netdata:
|
netdata:
|
||||||
image: titpetric/netdata:latest
|
image: netdata/netdata:latest
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
volumes:
|
volumes:
|
||||||
- /:/host:ro
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
ports:
|
ports:
|
||||||
- "${NETDATA_PORT}:19999"
|
- "${NETDATA_PORT}:19999"
|
||||||
networks:
|
networks:
|
||||||
@ -1443,19 +1771,38 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
build:
|
build:
|
||||||
context: ./traefik
|
context: ./traefik
|
||||||
command: --docker
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./traefik/data:/data
|
||||||
|
command:
|
||||||
|
- "--api"
|
||||||
|
- "--providers.docker.exposedbydefault=false"
|
||||||
|
- "--accesslog.filepath=/data/access.log"
|
||||||
|
# entrypoints
|
||||||
|
- "--entrypoints.http.address=:${TRAEFIK_HOST_HTTP_PORT}"
|
||||||
|
- "--entrypoints.http.http.redirections.entrypoint.to=https"
|
||||||
|
- "--entrypoints.https.address=:${TRAEFIK_HOST_HTTPS_PORT}"
|
||||||
|
- "--entrypoints.traefik.address=:${TRAEFIK_DASHBOARD_PORT}"
|
||||||
|
# certificatesresolvers
|
||||||
|
- "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}"
|
||||||
|
- "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
|
||||||
|
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
|
||||||
ports:
|
ports:
|
||||||
- "${TRAEFIK_HOST_HTTP_PORT}:80"
|
- "${TRAEFIK_HOST_HTTP_PORT}:${TRAEFIK_HOST_HTTP_PORT}"
|
||||||
- "${TRAEFIK_HOST_HTTPS_PORT}:443"
|
- "${TRAEFIK_HOST_HTTPS_PORT}:${TRAEFIK_HOST_HTTPS_PORT}"
|
||||||
|
- "${TRAEFIK_DASHBOARD_PORT}:${TRAEFIK_DASHBOARD_PORT}"
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
labels:
|
labels:
|
||||||
- traefik.backend=traefik
|
- "traefik.enable=true"
|
||||||
- traefik.frontend.rule=Host:monitor.localhost
|
- "traefik.http.routers.traefik.rule=Host(`${ACME_DOMAIN}`)"
|
||||||
- traefik.port=8080
|
- "traefik.http.routers.traefik.entrypoints=traefik"
|
||||||
|
- "traefik.http.routers.traefik.service=api@internal"
|
||||||
|
- "traefik.http.routers.traefik.middlewares=access-auth"
|
||||||
|
- "traefik.http.routers.traefik.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.middlewares.access-auth.basicauth.realm=Login Required"
|
||||||
|
- "traefik.http.middlewares.access-auth.basicauth.users=${TRAEFIK_DASHBOARD_USER}"
|
||||||
|
|
||||||
### MOSQUITTO Broker #########################################
|
### MOSQUITTO Broker #########################################
|
||||||
mosquitto:
|
mosquitto:
|
||||||
@ -1487,7 +1834,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
|
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
|
||||||
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
|
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
|
||||||
- ${DATA_PATH_HOST}/manticore/log:/var/lib/manticore/log
|
- ${DATA_PATH_HOST}/manticore/log:/var/log/manticore
|
||||||
ports:
|
ports:
|
||||||
- "${MANTICORE_API_PORT}:9312"
|
- "${MANTICORE_API_PORT}:9312"
|
||||||
- "${MANTICORE_SPHINXQL_PORT}:9306"
|
- "${MANTICORE_SPHINXQL_PORT}:9306"
|
||||||
@ -1517,6 +1864,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
### CONFLUENCE ################################################
|
### CONFLUENCE ################################################
|
||||||
confluence:
|
confluence:
|
||||||
container_name: Confluence
|
container_name: Confluence
|
||||||
@ -1530,4 +1878,53 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
|
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
|
||||||
|
|
||||||
|
### SWAGGER EDITOR ############################################
|
||||||
|
swagger-editor:
|
||||||
|
build: ./swagger-editor
|
||||||
|
ports:
|
||||||
|
- ${SWAGGER_EDITOR_PORT}:8080
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### SWAGGER UI ################################################
|
||||||
|
swagger-ui:
|
||||||
|
build: ./swagger-ui
|
||||||
|
environment:
|
||||||
|
- API_URL=${SWAGGER_API_URL}
|
||||||
|
ports:
|
||||||
|
- ${SWAGGER_UI_PORT}:8080
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
### tomcat ####################################################
|
||||||
|
tomcat:
|
||||||
|
container_name: tomcat
|
||||||
|
image: tomcat:${TOMCAT_VERSION}
|
||||||
|
ports:
|
||||||
|
- "${TOMCAT_HOST_HTTP_PORT}:8080"
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH_HOST}/tomcat/webapps:/usr/local/tomcat/webapps
|
||||||
|
- ${DATA_PATH_HOST}/tomcat/logs:/usr/local/tomcat/logs
|
||||||
|
# restart: always
|
||||||
|
|
||||||
|
### react #####################################################
|
||||||
|
react:
|
||||||
|
build:
|
||||||
|
context: ./react
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
container_name: react
|
||||||
|
stdin_open: true
|
||||||
|
environment:
|
||||||
|
- CHOKIDAR_USEPOLLING=true
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
volumes:
|
||||||
|
- ./react:/usr/src/app/react
|
||||||
|
- /usr/src/app/react/node_modules
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.6.0
|
ARG ELK_VERSION
|
||||||
|
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
|
||||||
|
|
||||||
EXPOSE 9200 9300
|
EXPOSE 9200 9300
|
||||||
|
321
env-example
@ -32,18 +32,19 @@ COMPOSE_FILE=docker-compose.yml
|
|||||||
# Change the separator from : to ; on Windows
|
# Change the separator from : to ; on Windows
|
||||||
COMPOSE_PATH_SEPARATOR=:
|
COMPOSE_PATH_SEPARATOR=:
|
||||||
|
|
||||||
# Define the prefix of container names. This is useful if you have multiple projects that use laradock to have seperate containers per project.
|
# Define the prefix of container names. This is useful if you have multiple projects that use laradock to have separate containers per project.
|
||||||
COMPOSE_PROJECT_NAME=laradock
|
COMPOSE_PROJECT_NAME=laradock
|
||||||
|
|
||||||
### PHP Version ###########################################
|
### PHP Version ###########################################
|
||||||
|
|
||||||
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 7.3 - 7.2 - 7.1 - 7.0 - 5.6
|
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM).
|
||||||
PHP_VERSION=7.2
|
# Accepted values: 7.4 - 7.3 - 7.2 - 7.1 - 7.0 - 5.6
|
||||||
|
PHP_VERSION=7.3
|
||||||
|
|
||||||
### Phalcon Version ###########################################
|
### Phalcon Version ###########################################
|
||||||
|
|
||||||
# Select a Phalcon version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 3.4.0+
|
# Select a Phalcon version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 3.4.0+
|
||||||
PHALCON_VERSION=3.4.1
|
PHALCON_VERSION=4.0.5
|
||||||
|
|
||||||
### PHP Interpreter #######################################
|
### PHP Interpreter #######################################
|
||||||
|
|
||||||
@ -60,6 +61,10 @@ DOCKER_HOST_IP=10.0.75.1
|
|||||||
# Choose a Remote Interpreter entry matching name. Default is `laradock`
|
# Choose a Remote Interpreter entry matching name. Default is `laradock`
|
||||||
PHP_IDE_CONFIG=serverName=laradock
|
PHP_IDE_CONFIG=serverName=laradock
|
||||||
|
|
||||||
|
### PHP DOWNGRADEOPENSSL TLS AND SECLEVEL #################
|
||||||
|
|
||||||
|
PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=false
|
||||||
|
|
||||||
### Windows Path ##########################################
|
### Windows Path ##########################################
|
||||||
|
|
||||||
# A fix for Windows users, to ensure the application path works
|
# A fix for Windows users, to ensure the application path works
|
||||||
@ -69,24 +74,44 @@ COMPOSE_CONVERT_WINDOWS_PATHS=1
|
|||||||
|
|
||||||
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
|
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
|
||||||
CHANGE_SOURCE=false
|
CHANGE_SOURCE=false
|
||||||
|
# Set CHANGE_SOURCE and UBUNTU_SOURCE option if you want to change the Ubuntu system sources.list file.
|
||||||
|
UBUNTU_SOURCE=aliyun
|
||||||
|
# Set ORACLE INSTANT_CLIENT_MIRROR option if you want to use Intranet improve download, you can download files first
|
||||||
|
ORACLE_INSTANT_CLIENT_MIRROR=https://github.com/diogomascarenha/oracle-instantclient/raw/master/
|
||||||
|
|
||||||
### Docker Sync ###########################################
|
### Docker Sync ###########################################
|
||||||
|
|
||||||
# If you are using Docker Sync. For `osx` use 'native_osx', for `windows` use 'unison', for `linux` docker-sync is not required
|
# If you are using Docker Sync. For `osx` use 'native_osx', for `windows` use 'unison', for `linux` docker-sync is not required
|
||||||
DOCKER_SYNC_STRATEGY=native_osx
|
DOCKER_SYNC_STRATEGY=native_osx
|
||||||
|
|
||||||
|
### Install Oh My ZSH! ####################################
|
||||||
|
|
||||||
|
# If you want to use "Oh My ZSH!" with Laravel autocomplete plugin, set SHELL_OH_MY_ZSH to true.
|
||||||
|
|
||||||
|
SHELL_OH_MY_ZSH=false
|
||||||
|
SHELL_OH_MY_ZSH_AUTOSUGESTIONS=false
|
||||||
|
SHELL_OH_MY_ZSH_ALIASES=false
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
################ Containers Customization #################
|
################ Containers Customization #################
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
### WORKSPACE #############################################
|
### WORKSPACE #############################################
|
||||||
|
|
||||||
|
WORKSPACE_BASE_IMAGE_TAG_PREFIX=latest
|
||||||
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
|
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
|
||||||
|
WORKSPACE_COMPOSER_VERSION=2
|
||||||
WORKSPACE_COMPOSER_AUTH=false
|
WORKSPACE_COMPOSER_AUTH=false
|
||||||
WORKSPACE_COMPOSER_REPO_PACKAGIST=
|
WORKSPACE_COMPOSER_REPO_PACKAGIST=
|
||||||
|
WORKSPACE_NVM_NODEJS_ORG_MIRROR=
|
||||||
WORKSPACE_INSTALL_NODE=true
|
WORKSPACE_INSTALL_NODE=true
|
||||||
WORKSPACE_NODE_VERSION=node
|
WORKSPACE_NODE_VERSION=node
|
||||||
WORKSPACE_NPM_REGISTRY=
|
WORKSPACE_NPM_REGISTRY=
|
||||||
|
WORKSPACE_NPM_FETCH_RETRIES=2
|
||||||
|
WORKSPACE_NPM_FETCH_RETRY_FACTOR=10
|
||||||
|
WORKSPACE_NPM_FETCH_RETRY_MINTIMEOUT=10000
|
||||||
|
WORKSPACE_NPM_FETCH_RETRY_MAXTIMEOUT=60000
|
||||||
|
WORKSPACE_INSTALL_PNPM=false
|
||||||
WORKSPACE_INSTALL_YARN=true
|
WORKSPACE_INSTALL_YARN=true
|
||||||
WORKSPACE_YARN_VERSION=latest
|
WORKSPACE_YARN_VERSION=latest
|
||||||
WORKSPACE_INSTALL_NPM_GULP=true
|
WORKSPACE_INSTALL_NPM_GULP=true
|
||||||
@ -96,22 +121,29 @@ WORKSPACE_INSTALL_NPM_ANGULAR_CLI=false
|
|||||||
WORKSPACE_INSTALL_PHPREDIS=true
|
WORKSPACE_INSTALL_PHPREDIS=true
|
||||||
WORKSPACE_INSTALL_WORKSPACE_SSH=false
|
WORKSPACE_INSTALL_WORKSPACE_SSH=false
|
||||||
WORKSPACE_INSTALL_SUBVERSION=false
|
WORKSPACE_INSTALL_SUBVERSION=false
|
||||||
|
WORKSPACE_INSTALL_BZ2=false
|
||||||
|
WORKSPACE_INSTALL_GMP=false
|
||||||
|
WORKSPACE_INSTALL_GNUPG=false
|
||||||
WORKSPACE_INSTALL_XDEBUG=false
|
WORKSPACE_INSTALL_XDEBUG=false
|
||||||
|
WORKSPACE_INSTALL_PCOV=false
|
||||||
WORKSPACE_INSTALL_PHPDBG=false
|
WORKSPACE_INSTALL_PHPDBG=false
|
||||||
WORKSPACE_INSTALL_SSH2=false
|
WORKSPACE_INSTALL_SSH2=false
|
||||||
WORKSPACE_INSTALL_LDAP=false
|
WORKSPACE_INSTALL_LDAP=false
|
||||||
WORKSPACE_INSTALL_GMP=false
|
|
||||||
WORKSPACE_INSTALL_SOAP=false
|
WORKSPACE_INSTALL_SOAP=false
|
||||||
WORKSPACE_INSTALL_XSL=false
|
WORKSPACE_INSTALL_XSL=false
|
||||||
|
WORKSPACE_INSTALL_SMB=false
|
||||||
WORKSPACE_INSTALL_IMAP=false
|
WORKSPACE_INSTALL_IMAP=false
|
||||||
WORKSPACE_INSTALL_MONGO=false
|
WORKSPACE_INSTALL_MONGO=false
|
||||||
WORKSPACE_INSTALL_AMQP=false
|
WORKSPACE_INSTALL_AMQP=false
|
||||||
|
WORKSPACE_INSTALL_CASSANDRA=false
|
||||||
|
WORKSPACE_INSTALL_GEARMAN=false
|
||||||
WORKSPACE_INSTALL_MSSQL=false
|
WORKSPACE_INSTALL_MSSQL=false
|
||||||
WORKSPACE_INSTALL_DRUSH=false
|
WORKSPACE_INSTALL_DRUSH=false
|
||||||
WORKSPACE_DRUSH_VERSION=8.1.17
|
WORKSPACE_DRUSH_VERSION=8.4.6
|
||||||
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
|
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
|
||||||
WORKSPACE_INSTALL_WP_CLI=false
|
WORKSPACE_INSTALL_WP_CLI=false
|
||||||
WORKSPACE_INSTALL_AEROSPIKE=false
|
WORKSPACE_INSTALL_AEROSPIKE=false
|
||||||
|
WORKSPACE_INSTALL_OCI8=false
|
||||||
WORKSPACE_INSTALL_V8JS=false
|
WORKSPACE_INSTALL_V8JS=false
|
||||||
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
|
||||||
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
|
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
|
||||||
@ -121,9 +153,12 @@ WORKSPACE_INSTALL_LINUXBREW=false
|
|||||||
WORKSPACE_INSTALL_MC=false
|
WORKSPACE_INSTALL_MC=false
|
||||||
WORKSPACE_INSTALL_SYMFONY=false
|
WORKSPACE_INSTALL_SYMFONY=false
|
||||||
WORKSPACE_INSTALL_PYTHON=false
|
WORKSPACE_INSTALL_PYTHON=false
|
||||||
|
WORKSPACE_INSTALL_PYTHON3=false
|
||||||
WORKSPACE_INSTALL_POWERLINE=false
|
WORKSPACE_INSTALL_POWERLINE=false
|
||||||
|
WORKSPACE_INSTALL_SUPERVISOR=false
|
||||||
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
WORKSPACE_INSTALL_IMAGEMAGICK=false
|
WORKSPACE_INSTALL_IMAGEMAGICK=false
|
||||||
|
WORKSPACE_IMAGEMAGICK_VERSION=latest
|
||||||
WORKSPACE_INSTALL_TERRAFORM=false
|
WORKSPACE_INSTALL_TERRAFORM=false
|
||||||
WORKSPACE_INSTALL_DUSK_DEPS=false
|
WORKSPACE_INSTALL_DUSK_DEPS=false
|
||||||
WORKSPACE_INSTALL_PG_CLIENT=false
|
WORKSPACE_INSTALL_PG_CLIENT=false
|
||||||
@ -131,43 +166,71 @@ WORKSPACE_INSTALL_PHALCON=false
|
|||||||
WORKSPACE_INSTALL_SWOOLE=false
|
WORKSPACE_INSTALL_SWOOLE=false
|
||||||
WORKSPACE_INSTALL_TAINT=false
|
WORKSPACE_INSTALL_TAINT=false
|
||||||
WORKSPACE_INSTALL_LIBPNG=false
|
WORKSPACE_INSTALL_LIBPNG=false
|
||||||
WORKSPACE_INSTALL_IONCUBE=false
|
WORKSPACE_INSTALL_GRAPHVIZ=false
|
||||||
|
WORKSPACE_INSTALL_IONCUBE=false # PHP 8.0 is not supported yet. Reference: https://forum.ioncube.com/viewtopic.php?t=4592
|
||||||
WORKSPACE_INSTALL_MYSQL_CLIENT=false
|
WORKSPACE_INSTALL_MYSQL_CLIENT=false
|
||||||
WORKSPACE_INSTALL_PING=false
|
WORKSPACE_INSTALL_PING=false
|
||||||
WORKSPACE_INSTALL_SSHPASS=false
|
WORKSPACE_INSTALL_SSHPASS=false
|
||||||
WORKSPACE_INSTALL_INOTIFY=false
|
WORKSPACE_INSTALL_INOTIFY=false
|
||||||
WORKSPACE_INSTALL_FSWATCH=false
|
WORKSPACE_INSTALL_FSWATCH=false
|
||||||
|
WORKSPACE_INSTALL_YAML=false
|
||||||
|
WORKSPACE_INSTALL_RDKAFKA=false
|
||||||
|
WORKSPACE_INSTALL_MAILPARSE=false
|
||||||
|
WORKSPACE_INSTALL_XMLRPC=false
|
||||||
WORKSPACE_PUID=1000
|
WORKSPACE_PUID=1000
|
||||||
WORKSPACE_PGID=1000
|
WORKSPACE_PGID=1000
|
||||||
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
||||||
WORKSPACE_TIMEZONE=UTC
|
WORKSPACE_TIMEZONE=UTC
|
||||||
WORKSPACE_SSH_PORT=2222
|
WORKSPACE_SSH_PORT=2222
|
||||||
WORKSPACE_INSTALL_FFMPEG=false
|
WORKSPACE_INSTALL_FFMPEG=false
|
||||||
|
WORKSPACE_INSTALL_AUDIOWAVEFORM=false
|
||||||
|
WORKSPACE_INSTALL_WKHTMLTOPDF=false
|
||||||
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
||||||
|
WORKSPACE_INSTALL_AST=true
|
||||||
|
WORKSPACE_AST_VERSION=1.0.10
|
||||||
|
WORKSPACE_BROWSERSYNC_HOST_PORT=3000
|
||||||
|
WORKSPACE_BROWSERSYNC_UI_HOST_PORT=3001
|
||||||
|
WORKSPACE_VUE_CLI_SERVE_HOST_PORT=8080
|
||||||
|
WORKSPACE_VUE_CLI_UI_HOST_PORT=8001
|
||||||
|
WORKSPACE_ANGULAR_CLI_SERVE_HOST_PORT=4200
|
||||||
|
WORKSPACE_INSTALL_GIT_PROMPT=false
|
||||||
|
WORKSPACE_INSTALL_DOCKER_CLIENT=false
|
||||||
|
WORKSPACE_INSTALL_LNAV=false
|
||||||
|
WORKSPACE_INSTALL_PROTOC=false
|
||||||
|
WORKSPACE_PROTOC_VERSION=latest
|
||||||
|
|
||||||
### PHP_FPM ###############################################
|
### PHP_FPM ###############################################
|
||||||
|
|
||||||
|
PHP_FPM_BASE_IMAGE_TAG_PREFIX=latest
|
||||||
PHP_FPM_INSTALL_BCMATH=true
|
PHP_FPM_INSTALL_BCMATH=true
|
||||||
PHP_FPM_INSTALL_MYSQLI=true
|
PHP_FPM_INSTALL_MYSQLI=true
|
||||||
PHP_FPM_INSTALL_INTL=true
|
PHP_FPM_INSTALL_INTL=true
|
||||||
PHP_FPM_INSTALL_IMAGEMAGICK=true
|
PHP_FPM_INSTALL_IMAGEMAGICK=true
|
||||||
|
PHP_FPM_IMAGEMAGICK_VERSION=latest
|
||||||
PHP_FPM_INSTALL_OPCACHE=true
|
PHP_FPM_INSTALL_OPCACHE=true
|
||||||
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
|
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
|
||||||
PHP_FPM_INSTALL_PHPREDIS=true
|
PHP_FPM_INSTALL_PHPREDIS=true
|
||||||
PHP_FPM_INSTALL_MEMCACHED=false
|
PHP_FPM_INSTALL_MEMCACHED=false
|
||||||
|
PHP_FPM_INSTALL_BZ2=false
|
||||||
|
PHP_FPM_INSTALL_GMP=false
|
||||||
|
PHP_FPM_INSTALL_GNUPG=false
|
||||||
PHP_FPM_INSTALL_XDEBUG=false
|
PHP_FPM_INSTALL_XDEBUG=false
|
||||||
|
PHP_FPM_INSTALL_PCOV=false
|
||||||
PHP_FPM_INSTALL_XHPROF=false
|
PHP_FPM_INSTALL_XHPROF=false
|
||||||
PHP_FPM_INSTALL_PHPDBG=false
|
PHP_FPM_INSTALL_PHPDBG=false
|
||||||
|
PHP_FPM_INSTALL_SMB=false
|
||||||
PHP_FPM_INSTALL_IMAP=false
|
PHP_FPM_INSTALL_IMAP=false
|
||||||
PHP_FPM_INSTALL_MONGO=false
|
PHP_FPM_INSTALL_MONGO=false
|
||||||
PHP_FPM_INSTALL_AMQP=false
|
PHP_FPM_INSTALL_AMQP=false
|
||||||
|
PHP_FPM_INSTALL_CASSANDRA=false
|
||||||
|
PHP_FPM_INSTALL_GEARMAN=false
|
||||||
PHP_FPM_INSTALL_MSSQL=false
|
PHP_FPM_INSTALL_MSSQL=false
|
||||||
PHP_FPM_INSTALL_SSH2=false
|
PHP_FPM_INSTALL_SSH2=false
|
||||||
PHP_FPM_INSTALL_SOAP=false
|
PHP_FPM_INSTALL_SOAP=false
|
||||||
PHP_FPM_INSTALL_XSL=false
|
PHP_FPM_INSTALL_XSL=false
|
||||||
PHP_FPM_INSTALL_GMP=false
|
|
||||||
PHP_FPM_INSTALL_EXIF=false
|
PHP_FPM_INSTALL_EXIF=false
|
||||||
PHP_FPM_INSTALL_AEROSPIKE=false
|
PHP_FPM_INSTALL_AEROSPIKE=false
|
||||||
|
PHP_FPM_INSTALL_OCI8=false
|
||||||
PHP_FPM_INSTALL_PGSQL=false
|
PHP_FPM_INSTALL_PGSQL=false
|
||||||
PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
PHP_FPM_INSTALL_GHOSTSCRIPT=false
|
||||||
PHP_FPM_INSTALL_LDAP=false
|
PHP_FPM_INSTALL_LDAP=false
|
||||||
@ -179,22 +242,49 @@ PHP_FPM_INSTALL_POSTGIS=false
|
|||||||
PHP_FPM_INSTALL_PCNTL=false
|
PHP_FPM_INSTALL_PCNTL=false
|
||||||
PHP_FPM_INSTALL_CALENDAR=false
|
PHP_FPM_INSTALL_CALENDAR=false
|
||||||
PHP_FPM_INSTALL_FAKETIME=false
|
PHP_FPM_INSTALL_FAKETIME=false
|
||||||
PHP_FPM_INSTALL_IONCUBE=false
|
PHP_FPM_INSTALL_IONCUBE=false # PHP 8.0 is not supported yet. Reference: https://forum.ioncube.com/viewtopic.php?t=4592
|
||||||
PHP_FPM_INSTALL_RDKAFKA=false
|
PHP_FPM_INSTALL_RDKAFKA=false
|
||||||
|
PHP_FPM_INSTALL_GETTEXT=false
|
||||||
|
PHP_FPM_INSTALL_XMLRPC=false
|
||||||
PHP_FPM_FAKETIME=-0
|
PHP_FPM_FAKETIME=-0
|
||||||
PHP_FPM_INSTALL_APCU=false
|
PHP_FPM_INSTALL_APCU=false
|
||||||
|
PHP_FPM_INSTALL_CACHETOOL=false
|
||||||
PHP_FPM_INSTALL_YAML=false
|
PHP_FPM_INSTALL_YAML=false
|
||||||
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
||||||
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
||||||
PHP_FPM_INSTALL_PING=false
|
PHP_FPM_INSTALL_PING=false
|
||||||
PHP_FPM_INSTALL_SSHPASS=false
|
PHP_FPM_INSTALL_SSHPASS=false
|
||||||
|
PHP_FPM_INSTALL_MAILPARSE=false
|
||||||
|
PHP_FPM_INSTALL_WKHTMLTOPDF=false
|
||||||
PHP_FPM_FFMPEG=false
|
PHP_FPM_FFMPEG=false
|
||||||
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
PHP_FPM_AUDIOWAVEFORM=false
|
||||||
|
PHP_FPM_ADDITIONAL_LOCALES="en_US.UTF-8 es_ES.UTF-8 fr_FR.UTF-8"
|
||||||
|
PHP_FPM_INSTALL_DOCKER_CLIENT=false
|
||||||
|
PHP_FPM_DEFAULT_LOCALE=POSIX
|
||||||
|
PHP_FPM_XDEBUG_PORT=9003
|
||||||
|
|
||||||
|
PHP_FPM_PUID=1000
|
||||||
|
PHP_FPM_PGID=1000
|
||||||
|
|
||||||
|
### PHP_FPM_NEW_RELIC #####################################
|
||||||
|
|
||||||
|
PHP_FPM_NEW_RELIC=false
|
||||||
|
PHP_FPM_NEW_RELIC_KEY=0000
|
||||||
|
PHP_FPM_NEW_RELIC_APP_NAME=app_name
|
||||||
|
|
||||||
### PHP_WORKER ############################################
|
### PHP_WORKER ############################################
|
||||||
|
|
||||||
|
PHP_WORKER_INSTALL_BZ2=false
|
||||||
|
PHP_WORKER_INSTALL_GD=false
|
||||||
|
PHP_WORKER_INSTALL_IMAGEMAGICK=false
|
||||||
|
PHP_WORKER_IMAGEMAGICK_VERSION=latest
|
||||||
|
PHP_WORKER_INSTALL_GMP=false
|
||||||
|
PHP_WORKER_INSTALL_GNUPG=false
|
||||||
PHP_WORKER_INSTALL_PGSQL=false
|
PHP_WORKER_INSTALL_PGSQL=false
|
||||||
|
PHP_WORKER_INSTALL_MONGO=false
|
||||||
PHP_WORKER_INSTALL_BCMATH=false
|
PHP_WORKER_INSTALL_BCMATH=false
|
||||||
|
# PHP_WORKER_INSTALL_OCI8 Does not work in php5.6 version
|
||||||
|
PHP_WORKER_INSTALL_OCI8=false
|
||||||
PHP_WORKER_INSTALL_PHALCON=false
|
PHP_WORKER_INSTALL_PHALCON=false
|
||||||
PHP_WORKER_INSTALL_SOAP=false
|
PHP_WORKER_INSTALL_SOAP=false
|
||||||
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
||||||
@ -204,7 +294,12 @@ PHP_WORKER_INSTALL_GHOSTSCRIPT=false
|
|||||||
PHP_WORKER_INSTALL_SWOOLE=false
|
PHP_WORKER_INSTALL_SWOOLE=false
|
||||||
PHP_WORKER_INSTALL_TAINT=false
|
PHP_WORKER_INSTALL_TAINT=false
|
||||||
PHP_WORKER_INSTALL_FFMPEG=false
|
PHP_WORKER_INSTALL_FFMPEG=false
|
||||||
PHP_WORKER_INSTALL_GMP=false
|
PHP_WORKER_INSTALL_AUDIOWAVEFORM=false
|
||||||
|
PHP_WORKER_INSTALL_CASSANDRA=false
|
||||||
|
PHP_WORKER_INSTALL_GEARMAN=false
|
||||||
|
PHP_WORKER_INSTALL_REDIS=false
|
||||||
|
PHP_WORKER_INSTALL_IMAP=false
|
||||||
|
PHP_WORKER_INSTALL_XMLRPC=false
|
||||||
|
|
||||||
PHP_WORKER_PUID=1000
|
PHP_WORKER_PUID=1000
|
||||||
PHP_WORKER_PGID=1000
|
PHP_WORKER_PGID=1000
|
||||||
@ -219,16 +314,38 @@ NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
|
|||||||
NGINX_PHP_UPSTREAM_PORT=9000
|
NGINX_PHP_UPSTREAM_PORT=9000
|
||||||
NGINX_SSL_PATH=./nginx/ssl/
|
NGINX_SSL_PATH=./nginx/ssl/
|
||||||
|
|
||||||
|
### LARAVEL_HORIZON ################################################
|
||||||
|
|
||||||
|
LARAVEL_HORIZON_INSTALL_BZ2=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_GD=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_GMP=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_GNUPG=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_IMAGEMAGICK=false
|
||||||
|
LARAVEL_HORIZON_IMAGEMAGICK_VERSION=latest
|
||||||
|
LARAVEL_HORIZON_INSTALL_SOCKETS=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_YAML=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_PHPREDIS=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_MONGO=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_CASSANDRA=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_FFMPEG=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_AUDIOWAVEFORM=false
|
||||||
|
LARAVEL_HORIZON_PGID=1000
|
||||||
|
LARAVEL_HORIZON_PUID=1000
|
||||||
|
|
||||||
### APACHE ################################################
|
### APACHE ################################################
|
||||||
|
|
||||||
APACHE_HOST_HTTP_PORT=80
|
APACHE_HOST_HTTP_PORT=80
|
||||||
APACHE_HOST_HTTPS_PORT=443
|
APACHE_HOST_HTTPS_PORT=443
|
||||||
APACHE_HOST_LOG_PATH=./logs/apache2
|
APACHE_HOST_LOG_PATH=./logs/apache2
|
||||||
APACHE_SITES_PATH=./apache2/sites
|
APACHE_SITES_PATH=./apache2/sites
|
||||||
|
APACHE_SSL_PATH=./apache2/ssl
|
||||||
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
|
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
|
||||||
APACHE_PHP_UPSTREAM_PORT=9000
|
APACHE_PHP_UPSTREAM_PORT=9000
|
||||||
APACHE_PHP_UPSTREAM_TIMEOUT=60
|
APACHE_PHP_UPSTREAM_TIMEOUT=60
|
||||||
APACHE_DOCUMENT_ROOT=/var/www/
|
APACHE_DOCUMENT_ROOT=/var/www/
|
||||||
|
APACHE_SSL_PATH=./apache2/ssl/
|
||||||
|
APACHE_INSTALL_HTTP2=false
|
||||||
|
|
||||||
### MYSQL #################################################
|
### MYSQL #################################################
|
||||||
|
|
||||||
@ -240,6 +357,20 @@ MYSQL_PORT=3306
|
|||||||
MYSQL_ROOT_PASSWORD=root
|
MYSQL_ROOT_PASSWORD=root
|
||||||
MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
|
MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
|
### CLICKHOUSE #################################################
|
||||||
|
|
||||||
|
CLICKHOUSE_VERSION=20.9.4.76
|
||||||
|
CLICKHOUSE_GOSU_VERSION=1.10
|
||||||
|
CLICKHOUSE_CUSTOM_CONFIG=./clickhouse/config.xml
|
||||||
|
CLICKHOUSE_USERS_CUSTOM_CONFIG=./clickhouse/users.xml
|
||||||
|
CLICKHOUSE_USER=default
|
||||||
|
CLICKHOUSE_PASSWORD=HAHA
|
||||||
|
CLICKHOUSE_HTTP_PORT=8123
|
||||||
|
CLICKHOUSE_CLIENT_PORT=9000
|
||||||
|
CLICKHOUSE_NATIVE_PORT=9009
|
||||||
|
CLICKHOUSE_ENTRYPOINT_INITDB=./clickhouse/docker-entrypoint-initdb.d
|
||||||
|
CLICKHOUSE_HOST_LOG_PATH=./logs/clickhouse
|
||||||
|
|
||||||
### REDIS #################################################
|
### REDIS #################################################
|
||||||
|
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
@ -263,12 +394,13 @@ PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d
|
|||||||
|
|
||||||
### MSSQL #################################################
|
### MSSQL #################################################
|
||||||
|
|
||||||
MSSQL_DATABASE=homestead
|
MSSQL_DATABASE=master
|
||||||
MSSQL_PASSWORD=yourStrong(!)Password
|
MSSQL_PASSWORD="yourStrong(!)Password"
|
||||||
MSSQL_PORT=1433
|
MSSQL_PORT=1433
|
||||||
|
|
||||||
### MARIADB ###############################################
|
### MARIADB ###############################################
|
||||||
|
|
||||||
|
MARIADB_VERSION=latest
|
||||||
MARIADB_DATABASE=default
|
MARIADB_DATABASE=default
|
||||||
MARIADB_USER=default
|
MARIADB_USER=default
|
||||||
MARIADB_PASSWORD=secret
|
MARIADB_PASSWORD=secret
|
||||||
@ -278,12 +410,18 @@ MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
|
|||||||
|
|
||||||
### POSTGRES ##############################################
|
### POSTGRES ##############################################
|
||||||
|
|
||||||
|
POSTGRES_VERSION=alpine
|
||||||
POSTGRES_DB=default
|
POSTGRES_DB=default
|
||||||
POSTGRES_USER=default
|
POSTGRES_USER=default
|
||||||
POSTGRES_PASSWORD=secret
|
POSTGRES_PASSWORD=secret
|
||||||
POSTGRES_PORT=5432
|
POSTGRES_PORT=5432
|
||||||
POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d
|
POSTGRES_ENTRYPOINT_INITDB=./postgres/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
|
### SQS ##############################################
|
||||||
|
|
||||||
|
SQS_NODE_HOST_PORT=9324
|
||||||
|
SQS_MANAGEMENT_HTTP_HOST_PORT=9325
|
||||||
|
|
||||||
### RABBITMQ ##############################################
|
### RABBITMQ ##############################################
|
||||||
|
|
||||||
RABBITMQ_NODE_HOST_PORT=5672
|
RABBITMQ_NODE_HOST_PORT=5672
|
||||||
@ -292,6 +430,20 @@ RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
|
|||||||
RABBITMQ_DEFAULT_USER=guest
|
RABBITMQ_DEFAULT_USER=guest
|
||||||
RABBITMQ_DEFAULT_PASS=guest
|
RABBITMQ_DEFAULT_PASS=guest
|
||||||
|
|
||||||
|
### MERCURE ##############################################
|
||||||
|
|
||||||
|
MERCURE_NODE_HOST_HTTP_PORT=1337
|
||||||
|
MERCURE_NODE_HOST_HTTPS_PORT=1338
|
||||||
|
MERCURE_PUBLISHER_JWT_KEY=secret
|
||||||
|
MERCURE_SUBSCRIBER_JWT_KEY=another_secret
|
||||||
|
MERCURE_DEBUG=debug
|
||||||
|
MERCURE_SERVER_NAME=:80
|
||||||
|
|
||||||
|
### MEILISEARCH ###########################################
|
||||||
|
|
||||||
|
MEILISEARCH_HOST_PORT=7700
|
||||||
|
MEILISEARCH_KEY=masterkey
|
||||||
|
|
||||||
### ELASTICSEARCH #########################################
|
### ELASTICSEARCH #########################################
|
||||||
|
|
||||||
ELASTICSEARCH_HOST_HTTP_PORT=9200
|
ELASTICSEARCH_HOST_HTTP_PORT=9200
|
||||||
@ -301,6 +453,10 @@ ELASTICSEARCH_HOST_TRANSPORT_PORT=9300
|
|||||||
|
|
||||||
KIBANA_HTTP_PORT=5601
|
KIBANA_HTTP_PORT=5601
|
||||||
|
|
||||||
|
### DEJAVU ################################################
|
||||||
|
|
||||||
|
DEJAVU_HTTP_PORT=1358
|
||||||
|
|
||||||
### MEMCACHED #############################################
|
### MEMCACHED #############################################
|
||||||
|
|
||||||
MEMCACHED_HOST_PORT=11211
|
MEMCACHED_HOST_PORT=11211
|
||||||
@ -325,8 +481,11 @@ MINIO_PORT=9000
|
|||||||
|
|
||||||
### ADMINER ###############################################
|
### ADMINER ###############################################
|
||||||
|
|
||||||
ADM_PORT=8080
|
ADM_PORT=8081
|
||||||
ADM_INSTALL_MSSQL=false
|
ADM_INSTALL_MSSQL=false
|
||||||
|
ADM_PLUGINS=
|
||||||
|
ADM_DESIGN=pepa-linha
|
||||||
|
ADM_DEFAULT_SERVER=mysql
|
||||||
|
|
||||||
### PHP MY ADMIN ##########################################
|
### PHP MY ADMIN ##########################################
|
||||||
|
|
||||||
@ -339,7 +498,10 @@ PMA_DB_ENGINE=mysql
|
|||||||
PMA_USER=default
|
PMA_USER=default
|
||||||
PMA_PASSWORD=secret
|
PMA_PASSWORD=secret
|
||||||
PMA_ROOT_PASSWORD=secret
|
PMA_ROOT_PASSWORD=secret
|
||||||
PMA_PORT=8080
|
PMA_PORT=8081
|
||||||
|
PMA_MAX_EXECUTION_TIME=600
|
||||||
|
PMA_MEMORY_LIMIT=256M
|
||||||
|
PMA_UPLOAD_LIMIT=2G
|
||||||
|
|
||||||
### MAILDEV ###############################################
|
### MAILDEV ###############################################
|
||||||
|
|
||||||
@ -349,9 +511,9 @@ MAILDEV_SMTP_PORT=25
|
|||||||
### VARNISH ###############################################
|
### VARNISH ###############################################
|
||||||
|
|
||||||
VARNISH_CONFIG=/etc/varnish/default.vcl
|
VARNISH_CONFIG=/etc/varnish/default.vcl
|
||||||
VARNISH_PORT=8080
|
VARNISH_PORT=6081
|
||||||
VARNISH_BACKEND_PORT=8888
|
VARNISH_BACKEND_PORT=81
|
||||||
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
|
VARNISHD_PARAMS="-p default_ttl=3600 -p default_grace=3600"
|
||||||
|
|
||||||
### Varnish ###############################################
|
### Varnish ###############################################
|
||||||
|
|
||||||
@ -403,10 +565,10 @@ GRAYLOG_GELF_UDP_PORT=12201
|
|||||||
|
|
||||||
# Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info.
|
# Create an account on blackfire.io. Don't enable blackfire and xDebug at the same time. # visit https://blackfire.io/docs/24-days/06-installation#install-probe-debian for more info.
|
||||||
INSTALL_BLACKFIRE=false
|
INSTALL_BLACKFIRE=false
|
||||||
BLACKFIRE_CLIENT_ID=<client_id>
|
BLACKFIRE_CLIENT_ID="<client_id>"
|
||||||
BLACKFIRE_CLIENT_TOKEN=<client_token>
|
BLACKFIRE_CLIENT_TOKEN="<client_token>"
|
||||||
BLACKFIRE_SERVER_ID=<server_id>
|
BLACKFIRE_SERVER_ID="<server_id>"
|
||||||
BLACKFIRE_SERVER_TOKEN=<server_token>
|
BLACKFIRE_SERVER_TOKEN="<server_token>"
|
||||||
|
|
||||||
### AEROSPIKE #############################################
|
### AEROSPIKE #############################################
|
||||||
|
|
||||||
@ -515,7 +677,7 @@ FACE_DETECTOR_CASCADE_FILE=haarcascade_frontalface_alt.xml
|
|||||||
OPTIMIZERS=[]
|
OPTIMIZERS=[]
|
||||||
JPEGTRAN_PATH=/usr/bin/jpegtran
|
JPEGTRAN_PATH=/usr/bin/jpegtran
|
||||||
PROGRESSIVE_JPEG=True
|
PROGRESSIVE_JPEG=True
|
||||||
FILTERS=["thumbor.filters.brightness", "thumbor.filters.contrast", "thumbor.filters.rgb", "thumbor.filters.round_corner", "thumbor.filters.quality", "thumbor.filters.noise", "thumbor.filters.watermark", "thumbor.filters.equalize", "thumbor.filters.fill", "thumbor.filters.sharpen", "thumbor.filters.strip_icc", "thumbor.filters.frame", "thumbor.filters.grayscale", "thumbor.filters.rotate", "thumbor.filters.format", "thumbor.filters.max_bytes", "thumbor.filters.convolution", "thumbor.filters.blur", "thumbor.filters.extract_focal", "thumbor.filters.no_upscale"]
|
FILTERS="[thumbor.filters.brightness, thumbor.filters.contrast, thumbor.filters.rgb, thumbor.filters.round_corner, thumbor.filters.quality, thumbor.filters.noise, thumbor.filters.watermark, thumbor.filters.equalize, thumbor.filters.fill, thumbor.filters.sharpen, thumbor.filters.strip_icc, thumbor.filters.frame, thumbor.filters.grayscale, thumbor.filters.rotate, thumbor.filters.format, thumbor.filters.max_bytes, thumbor.filters.convolution, thumbor.filters.blur, thumbor.filters.extract_focal, thumbor.filters.no_upscale]"
|
||||||
RESULT_STORAGE_EXPIRATION_SECONDS=0
|
RESULT_STORAGE_EXPIRATION_SECONDS=0
|
||||||
RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=/data/result_storage
|
RESULT_STORAGE_FILE_STORAGE_ROOT_PATH=/data/result_storage
|
||||||
RESULT_STORAGE_STORES_UNSAFE=False
|
RESULT_STORAGE_STORES_UNSAFE=False
|
||||||
@ -567,7 +729,7 @@ GITLAB_POSTGRES_DB=laradock_gitlab
|
|||||||
|
|
||||||
### GITLAB-RUNNER ###############################################
|
### GITLAB-RUNNER ###############################################
|
||||||
GITLAB_CI_SERVER_URL=http://localhost:8989
|
GITLAB_CI_SERVER_URL=http://localhost:8989
|
||||||
GITLAB_RUNNER_REGISTRATION_TOKEN=<my-registration-token>
|
GITLAB_RUNNER_REGISTRATION_TOKEN="<my-registration-token>"
|
||||||
GITLAB_REGISTER_NON_INTERACTIVE=true
|
GITLAB_REGISTER_NON_INTERACTIVE=true
|
||||||
|
|
||||||
### JUPYTERHUB ###############################################
|
### JUPYTERHUB ###############################################
|
||||||
@ -628,8 +790,8 @@ DOCKER_WEBUI_PORT=8754
|
|||||||
|
|
||||||
### MAILU ###############################################
|
### MAILU ###############################################
|
||||||
MAILU_VERSION=latest
|
MAILU_VERSION=latest
|
||||||
MAILU_RECAPTCHA_PUBLIC_KEY=<YOUR_RECAPTCHA_PUBLIC_KEY>
|
MAILU_RECAPTCHA_PUBLIC_KEY="<YOUR_RECAPTCHA_PUBLIC_KEY>"
|
||||||
MAILU_RECAPTCHA_PRIVATE_KEY=<YOUR_RECAPTCHA_PRIVATE_KEY>
|
MAILU_RECAPTCHA_PRIVATE_KEY="<YOUR_RECAPTCHA_PRIVATE_KEY>"
|
||||||
# Main mail domain
|
# Main mail domain
|
||||||
MAILU_HTTP_PORT=6080
|
MAILU_HTTP_PORT=6080
|
||||||
MAILU_HTTPS_PORT=60443
|
MAILU_HTTPS_PORT=60443
|
||||||
@ -645,7 +807,7 @@ MAILU_SECRET_KEY=ChangeMeChangeMe
|
|||||||
# Choose how secure connections will behave (value: letsencrypt, cert, notls, mail)
|
# Choose how secure connections will behave (value: letsencrypt, cert, notls, mail)
|
||||||
MAILU_TLS_FLAVOR=cert
|
MAILU_TLS_FLAVOR=cert
|
||||||
# Authentication rate limit (per source IP address)
|
# Authentication rate limit (per source IP address)
|
||||||
MAILU_AUTH_RATELIMIT=10/minute;1000/hour
|
MAILU_AUTH_RATELIMIT="10/minute;1000/hour"
|
||||||
# Opt-out of statistics, replace with "True" to opt out
|
# Opt-out of statistics, replace with "True" to opt out
|
||||||
MAILU_DISABLE_STATISTICS=False
|
MAILU_DISABLE_STATISTICS=False
|
||||||
# Message size limit in bytes
|
# Message size limit in bytes
|
||||||
@ -667,14 +829,14 @@ MAILU_DMARC_RUF=admin
|
|||||||
# Welcome email, enable and set a topic and body if you wish to send welcome
|
# Welcome email, enable and set a topic and body if you wish to send welcome
|
||||||
# emails to all users.
|
# emails to all users.
|
||||||
MAILU_WELCOME=True
|
MAILU_WELCOME=True
|
||||||
MAILU_WELCOME_SUBJECT=Welcome to your new email account
|
MAILU_WELCOME_SUBJECT="Welcome to your new email account"
|
||||||
MAILU_WELCOME_BODY=Welcome to your new email account, if you can read this, then it is configured properly!
|
MAILU_WELCOME_BODY="Welcome to your new email account, if you can read this, then it is configured properly!"
|
||||||
# Path to the admin interface if enabled
|
# Path to the admin interface if enabled
|
||||||
MAILU_WEB_ADMIN=/admin
|
MAILU_WEB_ADMIN=/admin
|
||||||
# Path to the webmail if enabled
|
# Path to the webmail if enabled
|
||||||
MAILU_WEB_WEBMAIL=/webmail
|
MAILU_WEB_WEBMAIL=/webmail
|
||||||
# Website name
|
# Website name
|
||||||
MAILU_SITENAME=Example Mail
|
MAILU_SITENAME="Example Mail"
|
||||||
# Linked Website URL
|
# Linked Website URL
|
||||||
MAILU_WEBSITE=http://mail.example.com
|
MAILU_WEBSITE=http://mail.example.com
|
||||||
# Default password scheme used for newly created accounts and changed passwords
|
# Default password scheme used for newly created accounts and changed passwords
|
||||||
@ -692,6 +854,11 @@ MAILU_WEBDAV=radicale
|
|||||||
|
|
||||||
TRAEFIK_HOST_HTTP_PORT=80
|
TRAEFIK_HOST_HTTP_PORT=80
|
||||||
TRAEFIK_HOST_HTTPS_PORT=443
|
TRAEFIK_HOST_HTTPS_PORT=443
|
||||||
|
TRAEFIK_DASHBOARD_PORT=8888
|
||||||
|
# basic authentication for traefik dashboard username: admin password:admin
|
||||||
|
TRAEFIK_DASHBOARD_USER=admin:$2y$10$lXaL3lj6raFic6rFqr2.lOBoCudAIhB6zyoqObNg290UFppiUzTTi
|
||||||
|
ACME_DOMAIN=example.org
|
||||||
|
ACME_EMAIL=email@example.org
|
||||||
|
|
||||||
|
|
||||||
### MOSQUITTO #################################################
|
### MOSQUITTO #################################################
|
||||||
@ -715,6 +882,15 @@ PGADMIN_PORT=5050
|
|||||||
PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
|
PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
|
||||||
PGADMIN_DEFAULT_PASSWORD=admin
|
PGADMIN_DEFAULT_PASSWORD=admin
|
||||||
|
|
||||||
|
### SWAGGER EDITOR ###########################################
|
||||||
|
|
||||||
|
SWAGGER_EDITOR_PORT=5151
|
||||||
|
|
||||||
|
### SWAGGER UI ###############################################
|
||||||
|
|
||||||
|
SWAGGER_API_URL=http://generator.swagger.io/api/swagger.json
|
||||||
|
SWAGGER_UI_PORT=5555
|
||||||
|
|
||||||
### SONARQUBE ################################################
|
### SONARQUBE ################################################
|
||||||
## docker-compose up -d sonarqube
|
## docker-compose up -d sonarqube
|
||||||
## (If you encounter a database error)
|
## (If you encounter a database error)
|
||||||
@ -730,3 +906,88 @@ SONARQUBE_POSTGRES_HOST=postgres
|
|||||||
SONARQUBE_POSTGRES_DB=sonar
|
SONARQUBE_POSTGRES_DB=sonar
|
||||||
SONARQUBE_POSTGRES_USER=sonar
|
SONARQUBE_POSTGRES_USER=sonar
|
||||||
SONARQUBE_POSTGRES_PASSWORD=sonarPass
|
SONARQUBE_POSTGRES_PASSWORD=sonarPass
|
||||||
|
|
||||||
|
### TOMCAT ################################################
|
||||||
|
TOMCAT_VERSION=8.5.43
|
||||||
|
TOMCAT_HOST_HTTP_PORT=8080
|
||||||
|
|
||||||
|
### CASSANDRA ################################################
|
||||||
|
|
||||||
|
# Cassandra Version, supported tags can be found at https://hub.docker.com/r/bitnami/cassandra/
|
||||||
|
CASSANDRA_VERSION=latest
|
||||||
|
# Inter-node cluster communication port. Default: 7000
|
||||||
|
CASSANDRA_TRANSPORT_PORT_NUMBER=7000
|
||||||
|
# JMX connections port. Default: 7199
|
||||||
|
CASSANDRA_JMX_PORT_NUMBER=7199
|
||||||
|
# Client port. Default: 9042.
|
||||||
|
CASSANDRA_CQL_PORT_NUMBER=9042
|
||||||
|
# Cassandra user name. Defaults: cassandra
|
||||||
|
CASSANDRA_USER=cassandra
|
||||||
|
# Password seeder will change the Cassandra default credentials at initialization. In clusters, only one node should be marked as password seeder. Default: no
|
||||||
|
CASSANDRA_PASSWORD_SEEDER=no
|
||||||
|
# Cassandra user password. Default: cassandra
|
||||||
|
CASSANDRA_PASSWORD=cassandra
|
||||||
|
# Number of tokens for the node. Default: 256.
|
||||||
|
CASSANDRA_NUM_TOKENS=256
|
||||||
|
# Hostname used to configure Cassandra. It can be either an IP or a domain. If left empty, it will be resolved to the machine IP.
|
||||||
|
CASSANDRA_HOST=
|
||||||
|
# Cluster name to configure Cassandra.. Defaults: My Cluster
|
||||||
|
CASSANDRA_CLUSTER_NAME="My Cluster"
|
||||||
|
# : Hosts that will act as Cassandra seeds. No defaults.
|
||||||
|
CASSANDRA_SEEDS=
|
||||||
|
# Snitch name (which determines which data centers and racks nodes belong to). Default SimpleSnitch
|
||||||
|
CASSANDRA_ENDPOINT_SNITCH=SimpleSnitch
|
||||||
|
# Enable the thrift RPC endpoint. Default :true
|
||||||
|
CASSANDRA_ENABLE_RPC=true
|
||||||
|
# Datacenter name for the cluster. Ignored in SimpleSnitch endpoint snitch. Default: dc1.
|
||||||
|
CASSANDRA_DATACENTER=dc1
|
||||||
|
# Rack name for the cluster. Ignored in SimpleSnitch endpoint snitch. Default: rack1.
|
||||||
|
CASSANDRA_RACK=rack1
|
||||||
|
|
||||||
|
### GEARMAN ##################################################
|
||||||
|
|
||||||
|
# Gearman version to use. See available tags at https://hub.docker.com/r/artefactual/gearmand
|
||||||
|
GEARMAN_VERSION=latest
|
||||||
|
# Port to use (Default: 4730)
|
||||||
|
GEARMAN_PORT=4730
|
||||||
|
# Logging Level (Default: INFO)
|
||||||
|
GEARMAN_VERBOSE=INFO
|
||||||
|
# Persistent queue type to use (Default: builtin)
|
||||||
|
GEARMAN_QUEUE_TYPE=builtin
|
||||||
|
# Number of I/O threads to use (Default: 4)
|
||||||
|
GEARMAN_THREADS=4
|
||||||
|
# Number of backlog connections for listen (Default: 32)
|
||||||
|
GEARMAN_BACKLOG=32
|
||||||
|
# Number of file descriptors to allow for the process (Default is max allowed for user)
|
||||||
|
GEARMAN_FILE_DESCRIPTORS=
|
||||||
|
# Number of attempts to run the job before the job server removes it. (Default: no limit = 0)
|
||||||
|
GEARMAN_JOB_RETRIES=0
|
||||||
|
# Assign work in round-robin order per worker connection (Default: 0)
|
||||||
|
GEARMAN_ROUND_ROBIN=0
|
||||||
|
# Number of workers to wakeup for each job received (Default: 0)
|
||||||
|
GEARMAN_WORKER_WAKEUP=0
|
||||||
|
# Enable keepalive on sockets (Default: 0)
|
||||||
|
GEARMAN_KEEPALIVE=0
|
||||||
|
# The duration between two keepalive transmissions in idle condition (Default: 30)
|
||||||
|
GEARMAN_KEEPALIVE_IDLE=30
|
||||||
|
# The duration between two successive keepalive retransmissions, if acknowledgement to the previous keepalive transmission is not received (Default: 10)
|
||||||
|
GEARMAN_KEEPALIVE_INTERVAL=10
|
||||||
|
# The number of retransmissions to be carried out before declaring that remote end is not available (Default: 5)
|
||||||
|
GEARMAN_KEEPALIVE_COUNT=5
|
||||||
|
# Mysql server host (Default: localhost)
|
||||||
|
GEARMAN_MYSQL_HOST=localhost
|
||||||
|
# Mysql server port (Default: 3306)
|
||||||
|
GEARMAN_MYSQL_PORT=3306
|
||||||
|
# Mysql server user (Default: root)
|
||||||
|
GEARMAN_MYSQL_USER=root
|
||||||
|
# Mysql password
|
||||||
|
GEARMAN_MYSQL_PASSWORD=
|
||||||
|
# Path to file with mysql password(Docker secrets)
|
||||||
|
GEARMAN_MYSQL_PASSWORD_FILE=
|
||||||
|
# Database to use by Gearman (Default: Gearmand)
|
||||||
|
GEARMAN_MYSQL_DB=Gearmand
|
||||||
|
# Table to use by Gearman (Default: gearman_queue)
|
||||||
|
GEARMAN_MYSQL_TABLE=gearman_queue
|
||||||
|
|
||||||
|
### ELK Stack ##################################################
|
||||||
|
ELK_VERSION=7.9.1
|
||||||
|
5
gearman/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ARG GEARMAN_VERSION=latest
|
||||||
|
FROM artefactual/gearmand:${GEARMAN_VERSION}
|
||||||
|
|
||||||
|
LABEL maintainer="Stefan Neuhaus <https://www.github.com/stefnats>"
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
FROM docker.elastic.co/kibana/kibana:6.6.0
|
ARG ELK_VERSION
|
||||||
|
FROM docker.elastic.co/kibana/kibana:${ELK_VERSION}
|
||||||
|
|
||||||
EXPOSE 5601
|
EXPOSE 5601
|
||||||
|
@ -7,6 +7,14 @@ WORKDIR /usr/src/app
|
|||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
COPY package.json /usr/src/app/
|
COPY package.json /usr/src/app/
|
||||||
|
|
||||||
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
|
ARG CHANGE_SOURCE=false
|
||||||
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
|
# Change application source from dl-cdn.alpinelinux.org to aliyun source
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
|
||||||
|
;fi
|
||||||
|
|
||||||
RUN apk add --update \
|
RUN apk add --update \
|
||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
|
@ -4,11 +4,21 @@
|
|||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
|
||||||
ARG PHP_VERSION=${PHP_VERSION}
|
ARG LARADOCK_PHP_VERSION
|
||||||
FROM php:${PHP_VERSION}-alpine
|
FROM php:${LARADOCK_PHP_VERSION}-alpine
|
||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||||
|
|
||||||
|
ARG LARADOCK_PHP_VERSION
|
||||||
|
|
||||||
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
|
ARG CHANGE_SOURCE=false
|
||||||
|
RUN if [ ${CHANGE_SOURCE} = true ]; then \
|
||||||
|
# Change application source from dl-cdn.alpinelinux.org to aliyun source
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
|
||||||
|
;fi
|
||||||
|
|
||||||
RUN apk --update add wget \
|
RUN apk --update add wget \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
@ -21,10 +31,95 @@ RUN apk --update add wget \
|
|||||||
cyrus-sasl-dev \
|
cyrus-sasl-dev \
|
||||||
libgsasl-dev \
|
libgsasl-dev \
|
||||||
supervisor \
|
supervisor \
|
||||||
|
oniguruma-dev \
|
||||||
procps
|
procps
|
||||||
|
|
||||||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
||||||
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached
|
RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
pecl channel-update pecl.php.net && pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||||
|
;else \
|
||||||
|
pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Add a non-root user to help install ffmpeg:
|
||||||
|
ARG PUID=1000
|
||||||
|
ENV PUID ${PUID}
|
||||||
|
ARG PGID=1000
|
||||||
|
ENV PGID ${PGID}
|
||||||
|
|
||||||
|
RUN addgroup -g ${PGID} laradock && \
|
||||||
|
adduser -D -G laradock -u ${PUID} laradock
|
||||||
|
|
||||||
|
#Install BZ2:
|
||||||
|
ARG INSTALL_BZ2=false
|
||||||
|
RUN if [ ${INSTALL_BZ2} = true ]; then \
|
||||||
|
apk --update add bzip2-dev; \
|
||||||
|
docker-php-ext-install bz2 \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# PHP GnuPG:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_GNUPG=false
|
||||||
|
|
||||||
|
RUN set -eux; if [ ${INSTALL_GNUPG} = true ]; then \
|
||||||
|
apk add --no-cache --no-progress --virtual BUILD_DEPS_PHP_GNUPG gpgme-dev; \
|
||||||
|
apk add --no-cache --no-progress gpgme; \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
|
pecl install gnupg-1.5.0RC2; \
|
||||||
|
else \
|
||||||
|
pecl install gnupg; \
|
||||||
|
fi; \
|
||||||
|
docker-php-ext-enable gnupg; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Install GD package:
|
||||||
|
ARG INSTALL_GD=false
|
||||||
|
RUN if [ ${INSTALL_GD} = true ]; then \
|
||||||
|
apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev; \
|
||||||
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80000" ] || [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70400" ]; then \
|
||||||
|
docker-php-ext-configure gd --with-freetype --with-jpeg; \
|
||||||
|
else \
|
||||||
|
docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/; \
|
||||||
|
fi && \
|
||||||
|
docker-php-ext-install gd \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#Install GMP package:
|
||||||
|
ARG INSTALL_GMP=false
|
||||||
|
RUN if [ ${INSTALL_GMP} = true ]; then \
|
||||||
|
apk add --update --no-cache gmp gmp-dev; \
|
||||||
|
docker-php-ext-install gmp \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#Install ImageMagick package:
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
ARG IMAGEMAGICK_VERSION=latest
|
||||||
|
ENV IMAGEMAGICK_VERSION ${IMAGEMAGICK_VERSION}
|
||||||
|
RUN set -eux; \
|
||||||
|
if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apk add --update --no-cache imagemagick-dev; \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
|
apk add --update --no-cache git && \
|
||||||
|
cd /tmp && \
|
||||||
|
if [ ${IMAGEMAGICK_VERSION} = "latest" ]; then \
|
||||||
|
git clone https://github.com/Imagick/imagick; \
|
||||||
|
else \
|
||||||
|
git clone --branch ${IMAGEMAGICK_VERSION} https://github.com/Imagick/imagick; \
|
||||||
|
fi && \
|
||||||
|
cd imagick && \
|
||||||
|
phpize && \
|
||||||
|
./configure && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
rm -r /tmp/imagick; \
|
||||||
|
else \
|
||||||
|
pecl install imagick; \
|
||||||
|
fi && \
|
||||||
|
docker-php-ext-enable imagick; \
|
||||||
|
php -m | grep -q 'imagick'; \
|
||||||
|
fi
|
||||||
|
|
||||||
#Install BCMath package:
|
#Install BCMath package:
|
||||||
ARG INSTALL_BCMATH=false
|
ARG INSTALL_BCMATH=false
|
||||||
@ -32,6 +127,12 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
|||||||
docker-php-ext-install bcmath \
|
docker-php-ext-install bcmath \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#Install Sockets package:
|
||||||
|
ARG INSTALL_SOCKETS=false
|
||||||
|
RUN if [ ${INSTALL_SOCKETS} = true ]; then \
|
||||||
|
docker-php-ext-install sockets \
|
||||||
|
;fi
|
||||||
|
|
||||||
# Install PostgreSQL drivers:
|
# Install PostgreSQL drivers:
|
||||||
ARG INSTALL_PGSQL=false
|
ARG INSTALL_PGSQL=false
|
||||||
RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
||||||
@ -39,6 +140,111 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
|||||||
&& docker-php-ext-install pdo_pgsql \
|
&& docker-php-ext-install pdo_pgsql \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Install ZipArchive:
|
||||||
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
|
RUN set -eux; \
|
||||||
|
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
|
apk --update add libzip-dev && \
|
||||||
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
|
docker-php-ext-configure zip; \
|
||||||
|
else \
|
||||||
|
docker-php-ext-configure zip --with-libzip; \
|
||||||
|
fi && \
|
||||||
|
# Install the zip extension
|
||||||
|
docker-php-ext-install zip \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Install PhpRedis package:
|
||||||
|
ARG INSTALL_PHPREDIS=false
|
||||||
|
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
|
# Install Php Redis Extension
|
||||||
|
printf "\n" | pecl install -o -f redis \
|
||||||
|
&& rm -rf /tmp/pear \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
ARG INSTALL_FFMPEG=false
|
||||||
|
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
|
||||||
|
# Add ffmpeg to horizon
|
||||||
|
apk add ffmpeg \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Install BBC Audio Waveform Image Generator:
|
||||||
|
ARG INSTALL_AUDIOWAVEFORM=false
|
||||||
|
RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \
|
||||||
|
apk add git make cmake gcc g++ libmad-dev libid3tag-dev libsndfile-dev gd-dev boost-dev libgd libpng-dev zlib-dev \
|
||||||
|
&& apk add autoconf automake libtool gettext \
|
||||||
|
&& wget https://github.com/xiph/flac/archive/1.3.3.tar.gz \
|
||||||
|
&& tar xzf 1.3.3.tar.gz \
|
||||||
|
&& cd flac-1.3.3 \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& ./configure --enable-shared=no \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd .. \
|
||||||
|
&& git clone https://github.com/bbc/audiowaveform.git \
|
||||||
|
&& cd audiowaveform \
|
||||||
|
&& wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz \
|
||||||
|
&& tar xzf release-1.10.0.tar.gz \
|
||||||
|
&& ln -s googletest-release-1.10.0/googletest googletest \
|
||||||
|
&& ln -s googletest-release-1.10.0/googlemock googlemock \
|
||||||
|
&& mkdir build \
|
||||||
|
&& cd build \
|
||||||
|
&& cmake .. \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
|
||||||
|
# Install Cassandra drivers:
|
||||||
|
ARG INSTALL_CASSANDRA=false
|
||||||
|
RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
|
echo "PHP Driver for Cassandra is not supported for PHP 8.0."; \
|
||||||
|
else \
|
||||||
|
apk add --update --no-cache cassandra-cpp-driver libuv gmp \
|
||||||
|
&& apk add --update --no-cache cassandra-cpp-driver-dev gmp-dev --virtual .build-sec \
|
||||||
|
&& cd /usr/src \
|
||||||
|
&& git clone https://github.com/datastax/php-driver.git \
|
||||||
|
&& cd php-driver/ext \
|
||||||
|
&& phpize \
|
||||||
|
&& mkdir -p /usr/src/php-driver/build \
|
||||||
|
&& cd /usr/src/php-driver/build \
|
||||||
|
&& ../ext/configure > /dev/null \
|
||||||
|
&& make clean > /dev/null \
|
||||||
|
&& make > /dev/null 2>&1 \
|
||||||
|
&& make install \
|
||||||
|
&& docker-php-ext-enable cassandra \
|
||||||
|
&& apk del .build-sec; \
|
||||||
|
fi \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
# Install MongoDB drivers:
|
||||||
|
ARG INSTALL_MONGO=false
|
||||||
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
|
pecl install mongodb \
|
||||||
|
&& docker-php-ext-enable mongodb \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# YAML: extension
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_YAML=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||||
|
apk --update add -U --no-cache --virtual temp yaml-dev \
|
||||||
|
&& apk add --no-cache yaml \
|
||||||
|
&& docker-php-source extract \
|
||||||
|
&& pecl channel-update pecl.php.net \
|
||||||
|
&& pecl install yaml \
|
||||||
|
&& docker-php-ext-enable yaml \
|
||||||
|
&& pecl clear-cache \
|
||||||
|
&& docker-php-source delete \
|
||||||
|
&& apk del temp \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -50,7 +256,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
|
|||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz"; \
|
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz"; \
|
||||||
else \
|
else \
|
||||||
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz"; \
|
curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/v3.1.4.tar.gz"; \
|
||||||
fi \
|
fi \
|
||||||
&& mkdir -p memcached \
|
&& mkdir -p memcached \
|
||||||
&& tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
|
&& tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
|
||||||
|