From 9e537ee16ba90d782a9ab4614c520a5aa1118296 Mon Sep 17 00:00:00 2001 From: salvo-github <36646452+salvo-github@users.noreply.github.com> Date: Wed, 29 May 2019 03:04:50 +0200 Subject: [PATCH] Update docker-compose.yml (#2124) The proxy args added allow to use the local env variable if setted. In this way there is not need to add the proxy server to .env file. --- docker-compose.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index b49eee6f..6427e2cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -114,6 +114,9 @@ services: - INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE} - INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG} - INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL} + - http_proxy + - https_proxy + - no_proxy volumes: - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG} extra_hosts: @@ -176,6 +179,9 @@ services: - INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT} - ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES} - INSTALL_FFMPEG=${PHP_FPM_FFMPEG} + - http_proxy + - https_proxy + - no_proxy volumes: - ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG} @@ -251,6 +257,9 @@ services: - PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER} - PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT} - CHANGE_SOURCE=${CHANGE_SOURCE} + - http_proxy + - https_proxy + - no_proxy volumes: - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG} - ${NGINX_HOST_LOG_PATH}:/var/log/nginx @@ -380,7 +389,12 @@ services: ### MariaDB ############################################## mariadb: - build: ./mariadb + build: + context: ./mariadb + args: + - http_proxy + - https_proxy + - no_proxy volumes: - ${DATA_PATH_HOST}/mariadb:/var/lib/mysql - ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d