Skip to content

Commit a322a38

Browse files
committed
Update docker-compose.yml
1 parent 0159a22 commit a322a38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
command: >
3939
bash -c "apt-get -y update && apt-get install -y zip unzip libicu-dev && docker-php-ext-install pdo_mysql intl && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis pdo_mysql intl && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
4040
&& if [ -f \"/app/basic/config/app_local.php\" ]; then composer update --prefer-dist cakephp/cakephp:~4.0 --working-dir=/app/basic --no-interaction --ignore-platform-req=ext-intl; else composer create-project --prefer-dist cakephp/app:~4.0 basic --working-dir=/app --no-interaction --ignore-platform-req=ext-intl; fi
41-
&& sed -e \"s/DB_USER/${DB_USER}/;s/DB_PASSWORD/${DB_PASSWORD}/;s/DB_NAME/${DB_NAME}/;s/__SALT__/$$(tr -dc 'A-Za-z0-9!#$$%&()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 32 ; echo)/\" ${WEBSERVER_DOC_ROOT}/app_local.php > /app/basic/config/app_local.php;
41+
&& sed \"s/DB_USER/${DB_USER}/;s/DB_PASSWORD/${DB_PASSWORD}/;s/DB_NAME/${DB_NAME}/;s/__SALT__/$$(tr -dc '[:alnum:]' </dev/urandom | head -c 32)/\" ${WEBSERVER_DOC_ROOT}/app_local.php > /app/basic/config/app_local.php;
4242
grep -qe 'date.timezone = ${LOCAL_TIMEZONE}' ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini || echo 'date.timezone = ${LOCAL_TIMEZONE}' >> ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini; php-fpm"
4343
4444
webserver:
@@ -52,13 +52,13 @@ services:
5252
volumes:
5353
- 'html:${WEBSERVER_DOC_ROOT}'
5454
- type: bind
55-
source: ./nginx/nginx.conf
55+
source: ./webserver/nginx.conf
5656
target: '${NGINX_PREFIX}/nginx.conf'
5757
- type: bind
58-
source: ./nginx/templates/nginx.conf.template
58+
source: ./webserver/templates/nginx.conf.template
5959
target: '${NGINX_PREFIX}/templates/default.conf.template'
6060
- type: bind
61-
source: ./nginx/ssl-option/options-ssl-nginx.conf
61+
source: ./webserver/ssl-option/options-ssl-nginx.conf
6262
target: '${LETSENCRYPT_CONF_PREFIX}/options-ssl-nginx.conf'
6363
- type: bind
6464
source: ./ssl-conf.sh

0 commit comments

Comments
 (0)