upgrade docker-compose to v3

This commit is contained in:
Mahmoud Zalt 2018-04-05 16:43:22 +03:00
parent 06353031ac
commit a0c5ef75d2
10 changed files with 238 additions and 307 deletions

View File

@ -478,18 +478,14 @@ composer create-project laravel/laravel my-cool-app "5.2.*"
For more about the Laravel installation click [here](https://laravel.com/docs/master#installing-laravel). For more about the Laravel installation click [here](https://laravel.com/docs/master#installing-laravel).
3 - Edit `docker-compose.yml` to Map the new application path: 3 - Edit `.env` to Map the new application path:
By default, Laradock assumes the Laravel application is living in the parent directory of the laradock folder. By default, Laradock assumes the Laravel application is living in the parent directory of the laradock folder.
Since the new Laravel application is in the `my-cool-app` folder, we need to replace `../:/var/www` with `../my-cool-app/:/var/www`, as follow: Since the new Laravel application is in the `my-cool-app` folder, we need to replace `../:/var/www` with `../my-cool-app/:/var/www`, as follow:
```yaml ```dotenv
application: APP_CODE_PATH_HOST=../my-cool-app/
image: tianon/true
volumes:
- ../my-cool-app/:/var/www
...
``` ```
4 - Go to that folder and start working.. 4 - Go to that folder and start working..
@ -1525,14 +1521,14 @@ Quick Setup giude, (we recommend you check their docs)
You can use the d4m-nfs solution in 2 ways, one is using the Laradock built it integration, and the other is using the tool separatly. Below is show case of both methods: You can use the d4m-nfs solution in 2 ways, one is using the Laradock built it integration, and the other is using the tool separatly. Below is show case of both methods:
#### B.1: using the built in d4m-nfs integration ### B.1: using the built in d4m-nfs integration
In simple terms, docker-sync creates a docker container with a copy of all the application files that can be accessed very quickly from the other containers. In simple terms, docker-sync creates a docker container with a copy of all the application files that can be accessed very quickly from the other containers.
On the other hand, docker-sync runs a process on the host machine that continuously tracks and updates files changes from the host to this intermediate container. On the other hand, docker-sync runs a process on the host machine that continuously tracks and updates files changes from the host to this intermediate container.
Out of the box, it comes pre-configured for OS X, but using it on Windows is very easy to set-up by modifying the `DOCKER_SYNC_STRATEGY` on the `.env` Out of the box, it comes pre-configured for OS X, but using it on Windows is very easy to set-up by modifying the `DOCKER_SYNC_STRATEGY` on the `.env`
##### Usage #### Usage
Laradock comes with `sync.sh`, an optional bash script, that automates installing, running and stopping docker-sync. Note that to run the bash script you may need to change the permissions `chmod 755 sync.sh` Laradock comes with `sync.sh`, an optional bash script, that automates installing, running and stopping docker-sync. Note that to run the bash script you may need to change the permissions `chmod 755 sync.sh`
@ -1547,22 +1543,24 @@ Laradock comes with `sync.sh`, an optional bash script, that automates installin
DOCKER_SYNC_STRATEGY=native_osx DOCKER_SYNC_STRATEGY=native_osx
``` ```
2) Install the docker-sync gem on the host-machine: 3) set `APP_CODE_PATH_CONTAINER=/var/www` to `APP_CODE_PATH_CONTAINER=/var/www:nocopy` in the .env file
4) Install the docker-sync gem on the host-machine:
```bash ```bash
./sync.sh install ./sync.sh install
``` ```
3) Start docker-sync and the Laradock environment. 5) Start docker-sync and the Laradock environment.
Specify the services you want to run, as you would normally do with `docker-compose up` Specify the services you want to run, as you would normally do with `docker-compose up`
```bash ```bash
./sync.sh up nginx mysql ./sync.sh up nginx mysql
``` ```
Please note that the first time docker-sync runs, it will copy all the files to the intermediate container and that may take a very long time (15min+). Please note that the first time docker-sync runs, it will copy all the files to the intermediate container and that may take a very long time (15min+).
4) To stop the environment and docker-sync do: 6) To stop the environment and docker-sync do:
```bash ```bash
./sync.sh down ./sync.sh down
``` ```
##### Setting up Aliases (optional) #### Setting up Aliases (optional)
You may create bash profile aliases to avoid having to remember and type these commands for everyday development. You may create bash profile aliases to avoid having to remember and type these commands for everyday development.
Add the following lines to your `~/.bash_profile`: Add the following lines to your `~/.bash_profile`:
@ -1576,7 +1574,7 @@ alias devdown="cd /PATH_TO_LARADOCK/laradock; ./sync.sh down"
Now from any location on your machine, you can simply run `devup`, `devbash` and `devdown`. Now from any location on your machine, you can simply run `devup`, `devbash` and `devdown`.
##### Additional Commands #### Additional Commands
Opening bash on the workspace container (to run artisan for example): Opening bash on the workspace container (to run artisan for example):
```bash ```bash
@ -1592,7 +1590,7 @@ Removing and cleaning up the files and the docker-sync container. Use only if yo
``` ```
##### Additional Notes #### Additional Notes
- You may run laradock with or without docker-sync at any time using with the same `.env` and `docker-compose.yml`, because the configuration is overridden automatically when docker-sync is used. - You may run laradock with or without docker-sync at any time using with the same `.env` and `docker-compose.yml`, because the configuration is overridden automatically when docker-sync is used.
- You may inspect the `sync.sh` script to learn each of the commands and even add custom ones. - You may inspect the `sync.sh` script to learn each of the commands and even add custom ones.
@ -1609,7 +1607,7 @@ Visit the [docker-sync documentation](https://github.com/EugenMayer/docker-sync/
<br> <br>
#### B.2: using the d4m-nfs tool ### B.2: using the d4m-nfs tool
[D4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one. [D4m-nfs](https://github.com/IFSight/d4m-nfs) automatically mount NFS volume instead of osxfs one.

View File

@ -161,7 +161,7 @@ We recommend using a Docker version which is newer than 1.13.
cp env-example .env cp env-example .env
``` ```
You can edit the `.env` file to chose which software's you want to be installed in your environment. You can always refer to the `docker-compose.yml` file to see how those variables are been used. You can edit the `.env` file to choose which software's you want to be installed in your environment. You can always refer to the `docker-compose.yml` file to see how those variables are been used.
Depending on the host's operating system you may need to change the value given to `COMPOSE_FILE`. When you are running Laradock on Mac OS the correct file separator to use is `:`. When running Laradock from a Windows environment multiple files must be separated with `;`. Depending on the host's operating system you may need to change the value given to `COMPOSE_FILE`. When you are running Laradock on Mac OS the correct file separator to use is `:`. When running Laradock from a Windows environment multiple files must be separated with `;`.
@ -173,7 +173,7 @@ In this example we'll see how to run NGINX (web server) and MySQL (database engi
docker-compose up -d nginx mysql docker-compose up -d nginx mysql
``` ```
**Note**: The `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command. If you couldn't find them running then you need specify them as follow: `docker-compose up -d nginx php-fpm mysql workspace`. **Note**: The web servers `nginx`, `apache`.. all depend on `php-fpm`, means if you just run, them they will automatically run the `php-fpm` for you, so no need to specify them in the `up` command. If you don't see them running then you may need run them as follow: `docker-compose up -d nginx php-fpm mysql...`.
You can select your own combination of containers from [this list](http://laradock.io/introduction/#supported-software-images). You can select your own combination of containers from [this list](http://laradock.io/introduction/#supported-software-images).

View File

@ -35,7 +35,7 @@ cp env-example .env
3 - Run your containers: 3 - Run your containers:
```shell ```shell
docker-compose up -d nginx mysql redis beanstalkd docker-compose up -d nginx mysql phpmyadmin redis workspace
``` ```
4 - Open your project's `.env` file and set the following: 4 - Open your project's `.env` file and set the following:

View File

@ -1,9 +0,0 @@
version: "2"
services:
### Applications Code Container #############################
applications:
volumes:
- ${APPLICATION}:/var/www:cached

View File

@ -1,13 +1,13 @@
version: '2' version: '3'
services: services:
### Applications Code Container ############################# ### Applications Code Container #############################
applications: # applications:
image: tianon/true # image: tianon/true
volumes: # volumes:
- applications-sync:/var/www:nocopy # nocopy is required # - applications-sync:/var/www:nocopy # nocopy is required
### Volumes Setup ############################################# ### Volumes Setup #############################################

View File

@ -1,14 +1,48 @@
version: '2' version: '3'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
volumes:
mysql:
driver: ${VOLUMES_DRIVER}
percona:
driver: ${VOLUMES_DRIVER}
mssql:
driver: ${VOLUMES_DRIVER}
postgres:
driver: ${VOLUMES_DRIVER}
memcached:
driver: ${VOLUMES_DRIVER}
redis:
driver: ${VOLUMES_DRIVER}
neo4j:
driver: ${VOLUMES_DRIVER}
mariadb:
driver: ${VOLUMES_DRIVER}
mongo:
driver: ${VOLUMES_DRIVER}
minio:
driver: ${VOLUMES_DRIVER}
rethinkdb:
driver: ${VOLUMES_DRIVER}
phpmyadmin:
driver: ${VOLUMES_DRIVER}
adminer:
driver: ${VOLUMES_DRIVER}
aerospike:
driver: ${VOLUMES_DRIVER}
caddy:
driver: ${VOLUMES_DRIVER}
elasticsearch:
driver: ${VOLUMES_DRIVER}
services: services:
### Applications Code Container ############################# ### Workspace Utilities ##################################
applications:
image: tianon/true
### Workspace Utilities Container ###########################
workspace: workspace:
build: build:
context: ./workspace context: ./workspace
@ -55,8 +89,8 @@ services:
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID} - BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN} - BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
dockerfile: "Dockerfile-${PHP_VERSION}" dockerfile: "Dockerfile-${PHP_VERSION}"
volumes_from: volumes:
- applications - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
extra_hosts: extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}" - "dockerhost:${DOCKER_HOST_IP}"
ports: ports:
@ -68,8 +102,7 @@ services:
- frontend - frontend
- backend - backend
### PHP-FPM Container ####################################### ### PHP-FPM ##############################################
php-fpm: php-fpm:
build: build:
context: ./php-fpm context: ./php-fpm
@ -100,14 +133,11 @@ services:
- INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS} - INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
- INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK} - INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
dockerfile: "Dockerfile-${PHP_VERSION}" dockerfile: "Dockerfile-${PHP_VERSION}"
volumes_from:
- applications
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}
expose: expose:
- "9000" - "9000"
depends_on:
- workspace
extra_hosts: extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}" - "dockerhost:${DOCKER_HOST_IP}"
environment: environment:
@ -115,17 +145,15 @@ services:
networks: networks:
- backend - backend
### PHP Worker Container ##################################### ### PHP Worker ############################################
php-worker: php-worker:
build: build:
context: ./php-worker context: ./php-worker
dockerfile: "Dockerfile-${PHP_VERSION}" dockerfile: "Dockerfile-${PHP_VERSION}"
args: args:
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL} - INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
volumes_from:
- applications
volumes: volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ./php-worker/supervisord.d:/etc/supervisord.d - ./php-worker/supervisord.d:/etc/supervisord.d
depends_on: depends_on:
- workspace - workspace
@ -134,17 +162,15 @@ services:
networks: networks:
- backend - backend
### NGINX Server Container ################################## ### NGINX Server #########################################
nginx: nginx:
build: build:
context: ./nginx context: ./nginx
args: args:
- 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}
volumes_from:
- applications
volumes: volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx - ${NGINX_HOST_LOG_PATH}:/var/log/nginx
- ${NGINX_SITES_PATH}:/etc/nginx/sites-available - ${NGINX_SITES_PATH}:/etc/nginx/sites-available
ports: ports:
@ -156,8 +182,7 @@ services:
- frontend - frontend
- backend - backend
### Blackfire Container ################################# ### Blackfire ########################################
blackfire: blackfire:
image: blackfire/blackfire image: blackfire/blackfire
environment: environment:
@ -168,8 +193,7 @@ services:
networks: networks:
- backend - backend
### Apache Server Container ################################# ### Apache Server ########################################
apache2: apache2:
build: build:
context: ./apache2 context: ./apache2
@ -178,9 +202,8 @@ 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}
volumes_from:
- applications
volumes: volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${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
ports: ports:
@ -192,12 +215,11 @@ services:
- frontend - frontend
- backend - backend
### HHVM Container ########################################## ### HHVM #################################################
hhvm: hhvm:
build: ./hhvm build: ./hhvm
volumes_from: volumes:
- applications - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
expose: expose:
- "9000" - "9000"
depends_on: depends_on:
@ -206,13 +228,12 @@ services:
- frontend - frontend
- backend - backend
### Minio Container ######################################### ### Minio ################################################
minio: minio:
build: ./minio build: ./minio
volumes: volumes:
- ${DATA_SAVE_PATH}/minio/data:/export - ${DATA_PATH_HOST}/minio/data:/export
- ${DATA_SAVE_PATH}/minio/config:/root/.minio - ${DATA_PATH_HOST}/minio/config:/root/.minio
ports: ports:
- "${MINIO_PORT}:9000" - "${MINIO_PORT}:9000"
environment: environment:
@ -222,8 +243,7 @@ services:
- frontend - frontend
- backend - backend
### MySQL Container ######################################### ### MySQL ################################################
mysql: mysql:
build: build:
context: ./mysql context: ./mysql
@ -236,15 +256,14 @@ services:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${WORKSPACE_TIMEZONE} - TZ=${WORKSPACE_TIMEZONE}
volumes: volumes:
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql - ${DATA_PATH_HOST}/mysql:/var/lib/mysql
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d - ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports: ports:
- "${MYSQL_PORT}:3306" - "${MYSQL_PORT}:3306"
networks: networks:
- backend - backend
### Percona Container ######################################### ### Percona ################################################
percona: percona:
build: build:
context: ./percona context: ./percona
@ -254,15 +273,14 @@ services:
- MYSQL_PASSWORD=${PERCONA_PASSWORD} - MYSQL_PASSWORD=${PERCONA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD} - MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
volumes: volumes:
- ${DATA_SAVE_PATH}/percona:/var/lib/mysql - ${DATA_PATH_HOST}/percona:/var/lib/mysql
- ${PERCONA_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d - ${PERCONA_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports: ports:
- "${PERCONA_PORT}:3306" - "${PERCONA_PORT}:3306"
networks: networks:
- backend - backend
### MSSQL Container ######################################### ### MSSQL ################################################
mssql: mssql:
build: build:
context: ./mssql context: ./mssql
@ -271,18 +289,17 @@ services:
- SA_PASSWORD=${MSSQL_PASSWORD} - SA_PASSWORD=${MSSQL_PASSWORD}
- ACCEPT_EULA=Y - ACCEPT_EULA=Y
volumes: volumes:
- ${DATA_SAVE_PATH}/mssql:/var/opt/mssql - ${DATA_PATH_HOST}/mssql:/var/opt/mssql
ports: ports:
- "${MSSQL_PORT}:1433" - "${MSSQL_PORT}:1433"
networks: networks:
- backend - backend
### MariaDB Container ####################################### ### MariaDB ##############################################
mariadb: mariadb:
build: ./mariadb build: ./mariadb
volumes: volumes:
- ${DATA_SAVE_PATH}/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"
@ -294,12 +311,11 @@ services:
networks: networks:
- backend - backend
### PostgreSQL Container #################################### ### PostgreSQL ###########################################
postgres: postgres:
build: ./postgres build: ./postgres
volumes: volumes:
- ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
ports: ports:
- "${POSTGRES_PORT}:5432" - "${POSTGRES_PORT}:5432"
environment: environment:
@ -309,12 +325,11 @@ services:
networks: networks:
- backend - backend
### PostgreSQL PostGis Container ############################ ### PostgreSQL PostGis ###################################
postgres-postgis: postgres-postgis:
build: ./postgres-postgis build: ./postgres-postgis
volumes: volumes:
- ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data - ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
ports: ports:
- "${POSTGRES_PORT}:5432" - "${POSTGRES_PORT}:5432"
environment: environment:
@ -324,8 +339,7 @@ services:
networks: networks:
- backend - backend
### Neo4j Container ######################################### ### Neo4j ################################################
neo4j: neo4j:
build: ./neo4j build: ./neo4j
ports: ports:
@ -334,51 +348,46 @@ services:
environment: environment:
- NEO4J_AUTH=default:secret - NEO4J_AUTH=default:secret
volumes: volumes:
- ${DATA_SAVE_PATH}/neo4j:/var/lib/neo4j/data - ${DATA_PATH_HOST}/neo4j:/var/lib/neo4j/data
networks: networks:
- backend - backend
### MongoDB Container ####################################### ### MongoDB ##############################################
mongo: mongo:
build: ./mongo build: ./mongo
ports: ports:
- "${MONGODB_PORT}:27017" - "${MONGODB_PORT}:27017"
volumes: volumes:
- ${DATA_SAVE_PATH}/mongo:/data/db - ${DATA_PATH_HOST}/mongo:/data/db
networks: networks:
- backend - backend
### RethinkDB Container ####################################### ### RethinkDB ##############################################
rethinkdb: rethinkdb:
build: ./rethinkdb build: ./rethinkdb
ports: ports:
- "${RETHINKDB_PORT}:8080" - "${RETHINKDB_PORT}:8080"
volumes: volumes:
- ${DATA_SAVE_PATH}/rethinkdb:/data/rethinkdb_data - ${DATA_PATH_HOST}/rethinkdb:/data/rethinkdb_data
networks: networks:
- backend - backend
### Redis Container ######################################### ### Redis ################################################
redis: redis:
build: ./redis build: ./redis
volumes: volumes:
- ${DATA_SAVE_PATH}/redis:/data - ${DATA_PATH_HOST}/redis:/data
ports: ports:
- "${REDIS_PORT}:6379" - "${REDIS_PORT}:6379"
networks: networks:
- backend - backend
### Aerospike c Container ################################### ### Aerospike ##########################################
aerospike: aerospike:
build: ./aerospike build: ./aerospike
volumes_from:
- workspace
volumes: volumes:
- ${DATA_SAVE_PATH}/aerospike:/opt/aerospike/data - workspace
- ${DATA_PATH_HOST}/aerospike:/opt/aerospike/data
ports: ports:
- "${AEROSPIKE_SERVICE_PORT}:3000" - "${AEROSPIKE_SERVICE_PORT}:3000"
- "${AEROSPIKE_FABRIC_PORT}:3001" - "${AEROSPIKE_FABRIC_PORT}:3001"
@ -387,12 +396,11 @@ services:
networks: networks:
- backend - backend
### Memcached Container ##################################### ### Memcached ############################################
memcached: memcached:
build: ./memcached build: ./memcached
volumes: volumes:
- ${DATA_SAVE_PATH}/memcached:/var/lib/memcached - ${DATA_PATH_HOST}/memcached:/var/lib/memcached
ports: ports:
- "${MEMCACHED_HOST_PORT}:11211" - "${MEMCACHED_HOST_PORT}:11211"
depends_on: depends_on:
@ -400,8 +408,7 @@ services:
networks: networks:
- backend - backend
### Beanstalkd Container #################################### ### Beanstalkd ###########################################
beanstalkd: beanstalkd:
build: ./beanstalkd build: ./beanstalkd
ports: ports:
@ -412,8 +419,7 @@ services:
networks: networks:
- backend - backend
### RabbitMQ Container ###################################### ### RabbitMQ #############################################
rabbitmq: rabbitmq:
build: ./rabbitmq build: ./rabbitmq
ports: ports:
@ -429,8 +435,7 @@ services:
networks: networks:
- backend - backend
### Beanstalkd Console Container ############################ ### Beanstalkd Console ###################################
beanstalkd-console: beanstalkd-console:
build: ./beanstalkd-console build: ./beanstalkd-console
ports: ports:
@ -440,16 +445,14 @@ services:
networks: networks:
- backend - backend
### Caddy Server Container ################################## ### Caddy Server #########################################
caddy: caddy:
build: ./caddy build: ./caddy
volumes_from:
- applications
volumes: volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${CADDY_CUSTOM_CADDYFILE}:/etc/Caddyfile - ${CADDY_CUSTOM_CADDYFILE}:/etc/Caddyfile
- ${CADDY_HOST_LOG_PATH}:/var/log/caddy - ${CADDY_HOST_LOG_PATH}:/var/log/caddy
- ${DATA_SAVE_PATH}:/root/.caddy - ${DATA_PATH_HOST}:/root/.caddy
ports: ports:
- "${CADDY_HOST_HTTP_PORT}:80" - "${CADDY_HOST_HTTP_PORT}:80"
- "${CADDY_HOST_HTTPS_PORT}:443" - "${CADDY_HOST_HTTPS_PORT}:443"
@ -459,8 +462,7 @@ services:
- frontend - frontend
- backend - backend
### phpMyAdmin Container #################################### ### phpMyAdmin ###########################################
phpmyadmin: phpmyadmin:
build: ./phpmyadmin build: ./phpmyadmin
environment: environment:
@ -476,8 +478,7 @@ services:
- frontend - frontend
- backend - backend
### Adminer Container #################################### ### Adminer ###########################################
adminer: adminer:
build: build:
context: ./adminer context: ./adminer
@ -491,14 +492,13 @@ services:
- frontend - frontend
- backend - backend
### pgAdmin Container ####################################### ### pgAdmin ##############################################
pgadmin: pgadmin:
build: ./pgadmin build: ./pgadmin
ports: ports:
- "5050:5050" - "5050:5050"
volumes: volumes:
- ${DATA_SAVE_PATH}/pgadmin-backup:/var/lib/pgadmin/storage/pgadmin4 - ${DATA_PATH_HOST}/pgadmin-backup:/var/lib/pgadmin/storage/pgadmin4
depends_on: depends_on:
- postgres - postgres
networks: networks:
@ -506,12 +506,11 @@ services:
- backend - backend
### ElasticSearch Container ################################# ### ElasticSearch ########################################
elasticsearch: elasticsearch:
build: ./elasticsearch build: ./elasticsearch
volumes: volumes:
- elasticsearch-data:/usr/share/elasticsearch/data - elasticsearch:/usr/share/elasticsearch/data
environment: environment:
- cluster.name=laradock-cluster - cluster.name=laradock-cluster
- bootstrap.memory_lock=true - bootstrap.memory_lock=true
@ -520,7 +519,6 @@ services:
memlock: memlock:
soft: -1 soft: -1
hard: -1 hard: -1
mem_limit: 1024m
ports: ports:
- "${ELASTICSEARCH_HOST_HTTP_PORT}:9200" - "${ELASTICSEARCH_HOST_HTTP_PORT}:9200"
- "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300" - "${ELASTICSEARCH_HOST_TRANSPORT_PORT}:9300"
@ -531,8 +529,7 @@ services:
- backend - backend
### Kibana Container ####################################### ### Kibana ##############################################
kibana: kibana:
build: ./kibana build: ./kibana
ports: ports:
@ -543,22 +540,20 @@ services:
- frontend - frontend
- backend - backend
### Certbot Container ################################## ### Certbot #########################################
certbot: certbot:
build: build:
context: ./certbot context: ./certbot
volumes: volumes:
- ./data/certbot/certs/:/var/certs - ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt - ./certbot/letsencrypt/:${APP_CODE_PATH_CONTAINER}/letsencrypt
environment: environment:
- CN="fake.domain.com" - CN="fake.domain.com"
- EMAIL="fake.email@gmail.com" - EMAIL="fake.email@gmail.com"
networks: networks:
- frontend - frontend
### Mailhog Container ######################################### ### Mailhog ################################################
mailhog: mailhog:
build: ./mailhog build: ./mailhog
ports: ports:
@ -568,8 +563,7 @@ services:
- frontend - frontend
- backend - backend
### MailDev Container ####################################### ### MailDev ##############################################
maildev: maildev:
build: ./maildev build: ./maildev
ports: ports:
@ -579,8 +573,7 @@ services:
- frontend - frontend
- backend - backend
### Selenium Container ######################################## ### Selenium ###############################################
selenium: selenium:
build: ./selenium build: ./selenium
ports: ports:
@ -590,8 +583,7 @@ services:
networks: networks:
- frontend - frontend
### Varnish Proxy 1 ########################################## ### Varnish ##########################################
proxy: proxy:
build: ./varnish build: ./varnish
expose: expose:
@ -609,8 +601,6 @@ services:
networks: networks:
- frontend - frontend
### Varnish Proxy 2 ##########################################
proxy2: proxy2:
build: ./varnish build: ./varnish
expose: expose:
@ -628,8 +618,7 @@ services:
networks: networks:
- frontend - frontend
### HAProxy Load Balancer #################################### ### HAProxy ####################################
haproxy: haproxy:
build: ./haproxy build: ./haproxy
ports: ports:
@ -641,7 +630,6 @@ services:
- proxy2 - proxy2
### Jenkins ################################################### ### Jenkins ###################################################
jenkins: jenkins:
build: ./jenkins build: ./jenkins
environment: environment:
@ -657,13 +645,12 @@ services:
- frontend - frontend
- backend - backend
### Grafana Container ######################################### ### Grafana ################################################
grafana: grafana:
build: build:
context: ./grafana context: ./grafana
volumes: volumes:
- ${DATA_SAVE_PATH}/grafana:/var/lib/grafana - ${DATA_PATH_HOST}/grafana:/var/lib/grafana
ports: ports:
- "${GRAFANA_PORT}:3000" - "${GRAFANA_PORT}:3000"
networks: networks:
@ -683,8 +670,7 @@ services:
- frontend - frontend
- backend - backend
### Solr Container ######################################### ### Solr ################################################
solr: solr:
build: build:
context: ./solr context: ./solr
@ -692,62 +678,18 @@ services:
- SOLR_VERSION=${SOLR_VERSION} - SOLR_VERSION=${SOLR_VERSION}
- SOLR_DATAIMPORTHANDLER_MYSQL=${SOLR_DATAIMPORTHANDLER_MYSQL} - SOLR_DATAIMPORTHANDLER_MYSQL=${SOLR_DATAIMPORTHANDLER_MYSQL}
volumes: volumes:
- ${DATA_SAVE_PATH}/solr:/opt/solr/server/solr/mycores - ${DATA_PATH_HOST}/solr:/opt/solr/server/solr/mycores
ports: ports:
- "${SOLR_PORT}:8983" - "${SOLR_PORT}:8983"
networks: networks:
- backend - backend
### AWS EB-CLI #### ### AWS EB-CLI ################################################
aws: aws:
build: build:
context: ./aws context: ./aws
volumes_from: volumes:
- applications - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
depends_on: depends_on:
- workspace - workspace
tty: true tty: true
### Networks Setup ############################################
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
### Volumes Setup #############################################
volumes:
mysql:
driver: "local"
percona:
driver: "local"
mssql:
driver: "local"
postgres:
driver: "local"
memcached:
driver: "local"
redis:
driver: "local"
neo4j:
driver: "local"
mariadb:
driver: "local"
mongo:
driver: "local"
minio:
driver: "local"
rethinkdb:
driver: "local"
phpmyadmin:
driver: "local"
adminer:
driver: "local"
aerospike:
driver: "local"
caddy:
driver: "local"
elasticsearch-data:
driver: "local"

View File

@ -1,81 +1,96 @@
########################################################### ###########################################################
# General Setup ###################### General Setup ######################
########################################################### ###########################################################
### Application Path ################################################################################################### ### Paths #################################################
# Point to your code, will be available at `/var/www`.
APPLICATION=../ # Point to the path of your applications code on your host
APP_CODE_PATH_HOST=../
# Point to where the `APP_CODE_PATH_HOST` should be in the container. You may add flags to the path `:cached`, `:delegated`. When using Docker Sync add `:nocopy`
APP_CODE_PATH_CONTAINER=/var/www:cached
# Choose storage path on your machine. For all storage systems
DATA_PATH_HOST=~/.laradock/data
### Drivers ################################################
# All volumes driver
VOLUMES_DRIVER=local
# All Networks driver
NETWORKS_DRIVER=bridge
### Docker compose files ##################################
# Select which docker-compose files to include. If using docker-sync append `:docker-compose.sync.yml` at the end
COMPOSE_FILE=docker-compose.yml
# Change the separator from : to ; on Windows
COMPOSE_PATH_SEPARATOR=:
### PHP Version ###########################################
### PHP Version ########################################################################################################
# Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 72 - 71 - 70 - 56 # Select a PHP version of the Workspace and PHP-FPM containers (Does not apply to HHVM). Accepted values: 72 - 71 - 70 - 56
PHP_VERSION=72 PHP_VERSION=72
### PHP Interpreter #################################################################################################### ### PHP Interpreter #######################################
# Select the PHP Interpreter. Accepted values: hhvm - php-fpm
# Select the PHP Interpreter. Accepted values: hhvm - php-fpm
PHP_INTERPRETER=php-fpm PHP_INTERPRETER=php-fpm
### Data Path ########################################################################################################## ### Docker Host IP ########################################
# Choose storage path on your machine. For all storage systems.
DATA_SAVE_PATH=~/.laradock/data
### Docker compose files ###############################################################################################
# Select which docker-compose files to include.
# If using docker-sync. Set the value to: docker-compose.yml:docker-compose.dev.yml:docker-compose.sync.yml
# Change the separator from : to ; on Windows
COMPOSE_PATH_SEPARATOR=:
COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
### Docker Host IP #####################################################################################################
# Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1` # Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1`
DOCKER_HOST_IP=10.0.75.1 DOCKER_HOST_IP=10.0.75.1
### Remote Interpreter ################################################################################################# ### Remote Interpreter ####################################
# 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
### 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
COMPOSE_CONVERT_WINDOWS_PATHS=1 COMPOSE_CONVERT_WINDOWS_PATHS=1
### Environment ######################################################################################################## ### Environment ###########################################
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
CHANGE_SOURCE=false CHANGE_SOURCE=false
######################################################################################################################## ### Docker Sync ###########################################
# 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
########################################################### ###########################################################
# Containers Customization ################ Containers Customization #################
########################################################### ###########################################################
### WORKSPACE ########################################################################################################## ### WORKSPACE #############################################
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
WORKSPACE_COMPOSER_REPO_PACKAGIST=
WORKSPACE_INSTALL_NODE=true
WORKSPACE_NODE_VERSION=stable
WORKSPACE_NPM_REGISTRY=
WORKSPACE_INSTALL_YARN=true
WORKSPACE_YARN_VERSION=latest
WORKSPACE_INSTALL_PHPREDIS=true
WORKSPACE_INSTALL_WORKSPACE_SSH=false
WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_XDEBUG=false
WORKSPACE_INSTALL_LDAP=false WORKSPACE_INSTALL_LDAP=false
WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_SOAP=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_PHPREDIS=false
WORKSPACE_INSTALL_MSSQL=false WORKSPACE_INSTALL_MSSQL=false
WORKSPACE_INSTALL_NODE=false
WORKSPACE_NPM_REGISTRY=
WORKSPACE_INSTALL_YARN=false
WORKSPACE_INSTALL_DRUSH=false WORKSPACE_INSTALL_DRUSH=false
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
WORKSPACE_INSTALL_AEROSPIKE=false WORKSPACE_INSTALL_AEROSPIKE=false
WORKSPACE_INSTALL_V8JS=false WORKSPACE_INSTALL_V8JS=false
WORKSPACE_COMPOSER_GLOBAL_INSTALL=false
WORKSPACE_COMPOSER_REPO_PACKAGIST=
WORKSPACE_INSTALL_WORKSPACE_SSH=false
WORKSPACE_INSTALL_LARAVEL_ENVOY=false WORKSPACE_INSTALL_LARAVEL_ENVOY=false
WORKSPACE_INSTALL_LARAVEL_INSTALLER=false WORKSPACE_INSTALL_LARAVEL_INSTALLER=false
WORKSPACE_INSTALL_DEPLOYER=false WORKSPACE_INSTALL_DEPLOYER=false
@ -93,43 +108,42 @@ WORKSPACE_INSTALL_SWOOLE=false
WORKSPACE_PUID=1000 WORKSPACE_PUID=1000
WORKSPACE_PGID=1000 WORKSPACE_PGID=1000
WORKSPACE_CHROME_DRIVER_VERSION=2.32 WORKSPACE_CHROME_DRIVER_VERSION=2.32
WORKSPACE_NODE_VERSION=stable
WORKSPACE_YARN_VERSION=latest
WORKSPACE_TIMEZONE=UTC WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222 WORKSPACE_SSH_PORT=2222
### PHP_FPM ############################################################################################################ ### PHP_FPM ###############################################
PHP_FPM_INSTALL_ZIP_ARCHIVE=true
PHP_FPM_INSTALL_BCMATH=true
PHP_FPM_INSTALL_MYSQLI=true
PHP_FPM_INSTALL_TOKENIZER=true
PHP_FPM_INSTALL_INTL=true
PHP_FPM_INSTALL_IMAGEMAGICK=true
PHP_FPM_INSTALL_OPCACHE=true
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=true
PHP_FPM_INSTALL_PHPREDIS=true
PHP_FPM_INSTALL_MEMCACHED=false
PHP_FPM_INSTALL_XDEBUG=false PHP_FPM_INSTALL_XDEBUG=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_MSSQL=false PHP_FPM_INSTALL_MSSQL=false
PHP_FPM_INSTALL_SOAP=false PHP_FPM_INSTALL_SOAP=false
PHP_FPM_INSTALL_ZIP_ARCHIVE=false
PHP_FPM_INSTALL_BCMATH=false
PHP_FPM_INSTALL_GMP=false PHP_FPM_INSTALL_GMP=false
PHP_FPM_INSTALL_PHPREDIS=false
PHP_FPM_INSTALL_MEMCACHED=false
PHP_FPM_INSTALL_OPCACHE=false
PHP_FPM_INSTALL_EXIF=false PHP_FPM_INSTALL_EXIF=false
PHP_FPM_INSTALL_AEROSPIKE=false PHP_FPM_INSTALL_AEROSPIKE=false
PHP_FPM_INSTALL_MYSQLI=false
PHP_FPM_INSTALL_PGSQL=false PHP_FPM_INSTALL_PGSQL=false
PHP_FPM_INSTALL_TOKENIZER=false PHP_FPM_INSTALL_POSTGRES=false
PHP_FPM_INSTALL_INTL=false
PHP_FPM_INSTALL_GHOSTSCRIPT=false PHP_FPM_INSTALL_GHOSTSCRIPT=false
PHP_FPM_INSTALL_LDAP=false PHP_FPM_INSTALL_LDAP=false
PHP_FPM_INSTALL_SWOOLE=false PHP_FPM_INSTALL_SWOOLE=false
PHP_FPM_INSTALL_IMAGE_OPTIMIZERS=false
PHP_FPM_INSTALL_IMAGEMAGICK=false
PHP_FPM_INSTALL_PG_CLIENT=false PHP_FPM_INSTALL_PG_CLIENT=false
### PHP_WORKER ######################################################################################################### ### PHP_WORKER ############################################
PHP_WORKER_INSTALL_PGSQL=false PHP_WORKER_INSTALL_PGSQL=false
### NGINX ############################################################################################################## ### NGINX #################################################
NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTP_PORT=80
NGINX_HOST_HTTPS_PORT=443 NGINX_HOST_HTTPS_PORT=443
@ -138,7 +152,7 @@ NGINX_SITES_PATH=./nginx/sites/
NGINX_PHP_UPSTREAM_CONTAINER=php-fpm NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000 NGINX_PHP_UPSTREAM_PORT=9000
### APACHE ############################################################################################################# ### APACHE ################################################
APACHE_HOST_HTTP_PORT=80 APACHE_HOST_HTTP_PORT=80
APACHE_HOST_HTTPS_PORT=443 APACHE_HOST_HTTPS_PORT=443
@ -149,7 +163,7 @@ 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/
### MYSQL ############################################################################################################## ### MYSQL #################################################
MYSQL_VERSION=latest MYSQL_VERSION=latest
MYSQL_DATABASE=default MYSQL_DATABASE=default
@ -159,11 +173,11 @@ 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
### REDIS ############################################################################################################## ### REDIS #################################################
REDIS_PORT=6379 REDIS_PORT=6379
### Percona ############################################################################################################ ### Percona ###############################################
PERCONA_DATABASE=homestead PERCONA_DATABASE=homestead
PERCONA_USER=homestead PERCONA_USER=homestead
@ -172,13 +186,13 @@ PERCONA_PORT=3306
PERCONA_ROOT_PASSWORD=root PERCONA_ROOT_PASSWORD=root
PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d PERCONA_ENTRYPOINT_INITDB=./percona/docker-entrypoint-initdb.d
### MSSQL ############################################################################################################## ### MSSQL #################################################
MSSQL_DATABASE=homestead MSSQL_DATABASE=homestead
MSSQL_PASSWORD=yourStrong(!)Password MSSQL_PASSWORD=yourStrong(!)Password
MSSQL_PORT=1433 MSSQL_PORT=1433
### MARIADB ############################################################################################################ ### MARIADB ###############################################
MARIADB_DATABASE=default MARIADB_DATABASE=default
MARIADB_USER=default MARIADB_USER=default
@ -187,14 +201,14 @@ MARIADB_PORT=3306
MARIADB_ROOT_PASSWORD=root MARIADB_ROOT_PASSWORD=root
MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d MARIADB_ENTRYPOINT_INITDB=./mariadb/docker-entrypoint-initdb.d
### POSTGRES ########################################################################################################### ### POSTGRES ##############################################
POSTGRES_DB=default POSTGRES_DB=default
POSTGRES_USER=default POSTGRES_USER=default
POSTGRES_PASSWORD=secret POSTGRES_PASSWORD=secret
POSTGRES_PORT=5432 POSTGRES_PORT=5432
### RABBITMQ ########################################################################################################### ### RABBITMQ ##############################################
RABBITMQ_NODE_HOST_PORT=5672 RABBITMQ_NODE_HOST_PORT=5672
RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672 RABBITMQ_MANAGEMENT_HTTP_HOST_PORT=15672
@ -202,43 +216,43 @@ RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
RABBITMQ_DEFAULT_USER=guest RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest RABBITMQ_DEFAULT_PASS=guest
### ELASTICSEARCH ###################################################################################################### ### ELASTICSEARCH #########################################
ELASTICSEARCH_HOST_HTTP_PORT=9200 ELASTICSEARCH_HOST_HTTP_PORT=9200
ELASTICSEARCH_HOST_TRANSPORT_PORT=9300 ELASTICSEARCH_HOST_TRANSPORT_PORT=9300
### KIBANA ############################################################################################################# ### KIBANA ################################################
KIBANA_HTTP_PORT=5601 KIBANA_HTTP_PORT=5601
### MEMCACHED ########################################################################################################## ### MEMCACHED #############################################
MEMCACHED_HOST_PORT=11211 MEMCACHED_HOST_PORT=11211
### BEANSTALKD CONSOLE ################################################################################################# ### BEANSTALKD CONSOLE ####################################
BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console BEANSTALKD_CONSOLE_BUILD_PATH=./beanstalkd-console
BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console BEANSTALKD_CONSOLE_CONTAINER_NAME=beanstalkd-console
BEANSTALKD_CONSOLE_HOST_PORT=2080 BEANSTALKD_CONSOLE_HOST_PORT=2080
### BEANSTALKD ######################################################################################################### ### BEANSTALKD ############################################
BEANSTALKD_HOST_PORT=11300 BEANSTALKD_HOST_PORT=11300
### SELENIUM ########################################################################################################### ### SELENIUM ##############################################
SELENIUM_PORT=4444 SELENIUM_PORT=4444
### MINIO ############################################################################################################## ### MINIO #################################################
MINIO_PORT=9000 MINIO_PORT=9000
### ADMINER ############################################################################################################ ### ADMINER ###############################################
ADM_PORT=8080 ADM_PORT=8080
ADM_INSTALL_MSSQL=false ADM_INSTALL_MSSQL=false
### PHP MY ADMIN ####################################################################################################### ### PHP MY ADMIN ##########################################
# Accepted values: mariadb - mysql # Accepted values: mariadb - mysql
@ -251,95 +265,81 @@ PMA_PASSWORD=secret
PMA_ROOT_PASSWORD=secret PMA_ROOT_PASSWORD=secret
PMA_PORT=8080 PMA_PORT=8080
### MAILDEV ############################################################################################################ ### MAILDEV ###############################################
MAILDEV_HTTP_PORT=1080 MAILDEV_HTTP_PORT=1080
MAILDEV_SMTP_PORT=25 MAILDEV_SMTP_PORT=25
### VARNISH ############################################################################################################ ### VARNISH ###############################################
VARNISH_CONFIG=/etc/varnish/default.vcl VARNISH_CONFIG=/etc/varnish/default.vcl
VARNISH_PORT=8080 VARNISH_PORT=8080
VARNISH_BACKEND_PORT=8888 VARNISH_BACKEND_PORT=8888
VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600 VARNISHD_PARAMS=-p default_ttl=3600 -p default_grace=3600
### Varnish ############################################################################################################ ### Varnish ###############################################
# Proxy 1 # Proxy 1
VARNISH_PROXY1_CACHE_SIZE=128m VARNISH_PROXY1_CACHE_SIZE=128m
VARNISH_PROXY1_BACKEND_HOST=workspace VARNISH_PROXY1_BACKEND_HOST=workspace
VARNISH_PROXY1_SERVER=SERVER1 VARNISH_PROXY1_SERVER=SERVER1
# Proxy 2 # Proxy 2
VARNISH_PROXY2_CACHE_SIZE=128m VARNISH_PROXY2_CACHE_SIZE=128m
VARNISH_PROXY2_BACKEND_HOST=workspace VARNISH_PROXY2_BACKEND_HOST=workspace
VARNISH_PROXY2_SERVER=SERVER2 VARNISH_PROXY2_SERVER=SERVER2
### HAPROXY ############################################################################################################ ### HAPROXY ###############################################
HAPROXY_HOST_HTTP_PORT=8085 HAPROXY_HOST_HTTP_PORT=8085
### JENKINS ############################################################################################################ ### JENKINS ###############################################
JENKINS_HOST_HTTP_PORT=8090 JENKINS_HOST_HTTP_PORT=8090
JENKINS_HOST_SLAVE_AGENT_PORT=50000 JENKINS_HOST_SLAVE_AGENT_PORT=50000
JENKINS_HOME=./jenkins/jenkins_home JENKINS_HOME=./jenkins/jenkins_home
### GRAFANA ############################################################################################################ ### GRAFANA ###############################################
GRAFANA_PORT=3000 GRAFANA_PORT=3000
### BLACKFIRE ########################################################################################################## ### BLACKFIRE #############################################
# 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 #############################################
AEROSPIKE_SERVICE_PORT=3000 AEROSPIKE_SERVICE_PORT=3000
AEROSPIKE_FABRIC_PORT=3001 AEROSPIKE_FABRIC_PORT=3001
AEROSPIKE_HEARTBEAT_PORT=3002 AEROSPIKE_HEARTBEAT_PORT=3002
AEROSPIKE_INFO_PORT=3003 AEROSPIKE_INFO_PORT=3003
### RETHINKDB ########################################################################################################## ### RETHINKDB #############################################
RETHINKDB_PORT=8090 RETHINKDB_PORT=8090
### MONGODB ############################################################################################################ ### MONGODB ###############################################
MONGODB_PORT=27017 MONGODB_PORT=27017
### CADDY ############################################################################################################## ### CADDY #################################################
CADDY_HOST_HTTP_PORT=80 CADDY_HOST_HTTP_PORT=80
CADDY_HOST_HTTPS_PORT=443 CADDY_HOST_HTTPS_PORT=443
CADDY_HOST_LOG_PATH=./logs/caddy CADDY_HOST_LOG_PATH=./logs/caddy
CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
### LARAVEL ECHO SERVER ################################################################################################ ### LARAVEL ECHO SERVER ###################################
LARAVEL_ECHO_SERVER_PORT=6001 LARAVEL_ECHO_SERVER_PORT=6001
### SOLR ############################################################################################################### ### SOLR ##################################################
SOLR_VERSION=5.5 SOLR_VERSION=5.5
SOLR_PORT=8983 SOLR_PORT=8983
SOLR_DATAIMPORTHANDLER_MYSQL=false SOLR_DATAIMPORTHANDLER_MYSQL=false
### DOCKER-SYNC ################################################################################################
# osx: 'native_osx' (default)
# windows: 'unison'
# linux: docker-sync not required
DOCKER_SYNC_STRATEGY=native_osx
########################################################################################################################

View File

@ -8,9 +8,9 @@
# GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ; # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
# #
### ###
### this sql script is auto run when mariadb container start and $DATA_SAVE_PATH/mariadb not exists. ### this sql script is auto run when mariadb container start and $DATA_PATH_HOST/mariadb not exists.
### ###
### if your $DATA_SAVE_PATH/mariadb is exists and you do not want to delete it, you can run by manual execution: ### if your $DATA_PATH_HOST/mariadb is exists and you do not want to delete it, you can run by manual execution:
### ###
### docker-compose exec mariadb bash ### docker-compose exec mariadb bash
### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql ### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql

View File

@ -8,9 +8,9 @@
# GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ; # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
# #
# #
# this sql script will auto run when the mysql container starts and the $DATA_SAVE_PATH/mysql not found. # this sql script will auto run when the mysql container starts and the $DATA_PATH_HOST/mysql not found.
# #
# if your $DATA_SAVE_PATH/mysql exists and you do not want to delete it, you can run by manual execution: # if your $DATA_PATH_HOST/mysql exists and you do not want to delete it, you can run by manual execution:
# #
# docker-compose exec mysql bash # docker-compose exec mysql bash
# mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql # mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql

View File

@ -8,9 +8,9 @@
# GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ; # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
# #
### ###
### this sql script is auto run when percona container start and $DATA_SAVE_PATH/percona not exists. ### this sql script is auto run when percona container start and $DATA_PATH_HOST/percona not exists.
### ###
### if your $DATA_SAVE_PATH/percona is exists and you do not want to delete it, you can run by manual execution: ### if your $DATA_PATH_HOST/percona is exists and you do not want to delete it, you can run by manual execution:
### ###
### docker-compose exec percona bash ### docker-compose exec percona bash
### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql ### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql