Separate variable flag container path out from APP_CODE_PATH_CONTAINER (#1591)
Because Container cannot volume when use APP_CODE_PATH_CONTAINER (with flag) concat with path name, e.g. /var/www:nocache/letencrypt This will fix 1540.
This commit is contained in:
parent
c7aa535598
commit
1d420a2507
|
@ -1832,7 +1832,7 @@ Laradock comes with `sync.sh`, an optional bash script, that automates installin
|
||||||
DOCKER_SYNC_STRATEGY=native_osx
|
DOCKER_SYNC_STRATEGY=native_osx
|
||||||
```
|
```
|
||||||
|
|
||||||
3) set `APP_CODE_PATH_CONTAINER=/var/www` to `APP_CODE_PATH_CONTAINER=/var/www:nocopy` in the .env file
|
3) set `APP_CODE_CONTAINER_FLAG` to `APP_CODE_CONTAINER_FLAG=:nocopy` in the .env file
|
||||||
|
|
||||||
4) Install the docker-sync gem on the host-machine:
|
4) Install the docker-sync gem on the host-machine:
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -107,7 +107,7 @@ 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}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
ports:
|
ports:
|
||||||
|
@ -164,7 +164,7 @@ services:
|
||||||
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
- INSTALL_YAML=${PHP_FPM_INSTALL_YAML}
|
||||||
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_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -197,7 +197,7 @@ services:
|
||||||
- PUID=${PHP_WORKER_PUID}
|
- PUID=${PHP_WORKER_PUID}
|
||||||
- PGID=${PHP_WORKER_PGID}
|
- PGID=${PHP_WORKER_PGID}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${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
|
||||||
depends_on:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
|
@ -233,7 +233,7 @@ services:
|
||||||
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
|
||||||
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
- ${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
|
||||||
- ${NGINX_SSL_PATH}:/etc/nginx/ssl
|
- ${NGINX_SSL_PATH}:/etc/nginx/ssl
|
||||||
|
@ -267,7 +267,7 @@ services:
|
||||||
- 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:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${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
|
||||||
ports:
|
ports:
|
||||||
|
@ -283,7 +283,7 @@ services:
|
||||||
hhvm:
|
hhvm:
|
||||||
build: ./hhvm
|
build: ./hhvm
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
expose:
|
expose:
|
||||||
- "9000"
|
- "9000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -536,7 +536,7 @@ services:
|
||||||
caddy:
|
caddy:
|
||||||
build: ./caddy
|
build: ./caddy
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
- ${CADDY_CONFIG_PATH}:/etc/caddy
|
- ${CADDY_CONFIG_PATH}:/etc/caddy
|
||||||
- ${CADDY_HOST_LOG_PATH}:/var/log/caddy
|
- ${CADDY_HOST_LOG_PATH}:/var/log/caddy
|
||||||
- ${DATA_PATH_HOST}:/root/.caddy
|
- ${DATA_PATH_HOST}:/root/.caddy
|
||||||
|
@ -909,7 +909,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./aws
|
context: ./aws
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
tty: true
|
tty: true
|
||||||
|
|
|
@ -7,8 +7,11 @@
|
||||||
# Point to the path of your applications code on your host
|
# Point to the path of your applications code on your host
|
||||||
APP_CODE_PATH_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`
|
# Point to where the `APP_CODE_PATH_HOST` should be in the container
|
||||||
APP_CODE_PATH_CONTAINER=/var/www:cached
|
APP_CODE_PATH_CONTAINER=/var/www
|
||||||
|
|
||||||
|
# You may add flags to the path `:cached`, `:delegated`. When using Docker Sync add `:nocopy`
|
||||||
|
APP_CODE_CONTAINER_FLAG=:cached
|
||||||
|
|
||||||
# Choose storage path on your machine. For all storage systems
|
# Choose storage path on your machine. For all storage systems
|
||||||
DATA_PATH_HOST=~/.laradock/data
|
DATA_PATH_HOST=~/.laradock/data
|
||||||
|
|
Loading…
Reference in New Issue