Skip to content

Commit 5f2aba0

Browse files
committed
Update docker-compose.yml
1 parent 8392e7f commit 5f2aba0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

docker-compose.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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 libicu-dev && docker-php-ext-install mysqli intl; pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis mysqli intl;
38+
bash -c "apt-get -y update && apt-get install -y libicu-dev && docker-php-ext-install mysqli intl; if pecl install -p -- redis; then pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis; fi;
3939
sed 's/DB_USER/${DB_USER}/;s/DB_PASSWORD/${DB_PASSWORD}/;s/DB_NAME/${DB_NAME}/' ${WEBSERVER_DOC_ROOT}/index.php_orj > ${WEBSERVER_DOC_ROOT}/index.php;
4040
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
@@ -69,8 +69,6 @@ services:
6969
- website
7070
environment:
7171
TZ: '${LOCAL_TIMEZONE}'
72-
labels:
73-
- "docker-volume-backup.stop-during-backup=true"
7472
command: bash -c "sh /tmp/ssl-conf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${HTTPD_PREFIX}/conf'"
7573

7674
certbot:
@@ -130,8 +128,6 @@ services:
130128
UPLOAD_LIMIT: '${PMA_UPLOAD_LIMIT}'
131129
MEMORY_LIMIT: '${PMA_MEMORY_LIMIT}'
132130
TZ: '${LOCAL_TIMEZONE}'
133-
labels:
134-
- "docker-volume-backup.stop-during-backup=true"
135131
command: >
136132
bash -c "echo ${PMA_HTPASSWD_USERNAME}:phpmyadmin:$$( printf \"%s:%s:%s\" \"${PMA_HTPASSWD_USERNAME}\" \"phpmyadmin\" \"${PMA_HTPASSWD_PASSWORD}\" | md5sum | awk '{print $$1}' ) > ${PMA_CONF_FOLDER}/.htpasswd
137133
&& printf 'AuthType Digest\\nAuthName \"phpmyadmin\"\\nAuthDigestProvider file\\nAuthUserFile ${PMA_CONF_FOLDER}/.htpasswd\\nRequire valid-user\\n' > ${WEBSERVER_DOC_ROOT}/.htaccess && a2enmod auth_digest;
@@ -184,8 +180,6 @@ services:
184180
environment:
185181
ALLOW_EMPTY_PASSWORD: 'yes'
186182
TZ: '${LOCAL_TIMEZONE}'
187-
labels:
188-
- "docker-volume-backup.stop-during-backup=true"
189183
command: "redis-server ${REDIS_CONF_PREFIX}/redis/redis.conf"
190184

191185
backup:

0 commit comments

Comments
 (0)