Skip to content

Commit 03067ae

Browse files
committed
Update docker-compose.yml
1 parent 8919326 commit 03067ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
networks:
1111
- backend
1212
volumes:
13-
- 'html:${WEBSERVER_DOC_ROOT}'
13+
- 'html:${WEBSERVER_DOC_ROOT}'
1414
- type: bind
1515
source: ./php-fpm/php/conf.d/security.ini
1616
target: '${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini'
@@ -35,7 +35,7 @@ services:
3535
labels:
3636
- 'docker-volume-backup.stop-during-backup=true'
3737
command: >
38-
bash -c "apt-get -y update && apt-get install -y zip unzip libicu-dev && docker-php-ext-install mysqli intl && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis mysqli intl; curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && if [ -f \"${WEBSERVER_DOC_ROOT}/appstarter/.env\" ]; then composer update --prefer-dist --working-dir=./appstarter --no-interaction --ignore-platform-req=ext-intl; else composer create-project codeigniter4/appstarter --no-dev --prefer-dist --no-interaction --ignore-platform-req=ext-intl; fi;
38+
bash -c "apt-get -y update && apt-get install -y zip unzip libicu-dev && docker-php-ext-install mysqli intl && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis mysqli intl; curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && if [ -f \"${WEBSERVER_DOC_ROOT}/appstarter/.env\" ]; then composer update --working-dir=${WEBSERVER_DOC_ROOT}/appstarter; else composer create-project codeigniter4/appstarter --no-dev; fi;
3939
sed \"s/# app.baseURL = ''/app.baseURL = 'https:\/\/${DOMAIN_NAME}\/'/;s/# app_baseURL = ''/app_baseURL = 'https:\/\/${DOMAIN_NAME}\/'/;s/# database.default.hostname = localhost/database.default.hostname = database/;s/# database.default.database = ci4/database.default.database = ${DB_NAME}/;s/# database.default.username = root/database.default.username = ${DB_USER}/;s/# database.default.password = root/database.default.password = ${DB_PASSWORD}/;s/# database.default.DBDriver = MySQLi/database.default.DBDriver = MySQLi/;s/# database.default.DBPrefix =/database.default.DBPrefix = ${DB_TABLE_PREFIX}/;s/# database.default.port = 3306/database.default.port = 3306/\" ${WEBSERVER_DOC_ROOT}/appstarter/env > ${WEBSERVER_DOC_ROOT}/appstarter/.env;
4040
chmod 777 -R ${WEBSERVER_DOC_ROOT}/appstarter/writable/; 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"
4141
@@ -50,13 +50,13 @@ services:
5050
volumes:
5151
- 'html:${WEBSERVER_DOC_ROOT}'
5252
- type: bind
53-
source: ./nginx/nginx.conf
53+
source: ./webserver/nginx.conf
5454
target: '${NGINX_PREFIX}/nginx.conf'
5555
- type: bind
56-
source: ./nginx/templates/nginx.conf.template
56+
source: ./webserver/templates/nginx.conf.template
5757
target: '${NGINX_PREFIX}/templates/default.conf.template'
5858
- type: bind
59-
source: ./nginx/ssl-option/options-ssl-nginx.conf
59+
source: ./webserver/ssl-option/options-ssl-nginx.conf
6060
target: '${LETSENCRYPT_CONF_PREFIX}/options-ssl-nginx.conf'
6161
- type: bind
6262
source: ./ssl-conf.sh

0 commit comments

Comments
 (0)