Skip to content

Commit fe569d4

Browse files
committed
Update docker-compose.yml
1 parent 41cd2e8 commit fe569d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
cakephp:
66
depends_on:
77
- database
8+
- redis
89
image: '${PHP_IMAGE_NAME}'
910
container_name: 'cakephp-php-fpm'
1011
networks:
@@ -33,11 +34,11 @@ services:
3334
bash -c "apt-get -y update && apt-get install -y zip unzip libicu-dev && docker-php-ext-install pdo_mysql intl && pecl install redis && docker-php-ext-enable redis && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer &&
3435
if [ \"$$(ls -A /app/basic)\" ]; then composer require --update-with-dependencies 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 &&
3536
grep -qxF 'date.timezone = ${LOCAL_TIMEZONE}' ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini || echo -e 'date.timezone = ${LOCAL_TIMEZONE}' >> ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini &&
36-
sed -i '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 | fold -w 32 | head -n 1)/' ${WEBSERVER_DOC_ROOT}/app_local.php && cp ${WEBSERVER_DOC_ROOT}/app_local.php /app/basic/config/app_local.php && php-fpm"
37+
sed -i \"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 | fold -w 32 | head -n 1)\"/\" ${WEBSERVER_DOC_ROOT}/app_local.php && cp ${WEBSERVER_DOC_ROOT}/app_local.php /app/basic/config/app_local.php && php-fpm"
3738
3839
webserver:
39-
depends_on:
40-
- cakephp
40+
#depends_on:
41+
# - cakephp
4142
image: 'httpd:latest'
4243
container_name: webserver
4344
networks:

0 commit comments

Comments
 (0)