@@ -25,6 +25,12 @@ services:
2525 links :
2626 - database
2727 - redis
28+ healthcheck :
29+ test : ["CMD-SHELL", "curl -fk https://${DOMAIN_NAME} || exit 1"]
30+ interval : 10s
31+ timeout : 5s
32+ retries : 5
33+ start_period : 60s
2834 environment :
2935 TZ : ' ${LOCAL_TIMEZONE}'
3036 labels :
@@ -69,7 +75,7 @@ services:
6975 environment :
7076 NGINX_HOST : ${DOMAIN_NAME}
7177 NGINX_PORT : 80
72- TZ : ' ${LOCAL_TIMEZONE}'
78+ TZ : ' ${LOCAL_TIMEZONE}'
7379 labels :
7480 - " docker-volume-backup.stop-during-backup=true"
7581 command : bash -c "/docker-entrypoint.sh nginx -v; sh /tmp/ssl-conf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${NGINX_PREFIX}'"
@@ -102,10 +108,10 @@ services:
102108 volumes :
103109 - type : bind
104110 source : ./phpmyadmin/apache2/sites-available/default-ssl.conf
105- target : ' ${APACHE_CONFDIR }/sites-available/default-ssl.conf'
111+ target : ' ${APACHE_CONFDIR_PREFIX }/sites-available/default-ssl.conf'
106112 - type : bind
107113 source : ./phpmyadmin/apache2/ports.conf
108- target : ' ${APACHE_CONFDIR }/ports.conf'
114+ target : ' ${APACHE_CONFDIR_PREFIX }/ports.conf'
109115 - type : bind
110116 source : ./phpmyadmin/ssl-option/options-ssl-apache.conf
111117 target : ' ${LETSENCRYPT_CONF_PREFIX}/options-ssl-apache.conf'
@@ -137,7 +143,7 @@ services:
137143 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
138144 && printf 'AuthType Digest\nAuthName \"phpmyadmin\"\nAuthDigestProvider file\nAuthUserFile ${PMA_CONF_FOLDER}/.htpasswd\nRequire valid-user\n' > ${WEBSERVER_DOC_ROOT}/.htaccess && a2enmod auth_digest;
139145 mkdir -p ${WEBSERVER_DOC_ROOT}/../upload && chown www-data:www-data ${WEBSERVER_DOC_ROOT}/../upload && chmod a+w ${WEBSERVER_DOC_ROOT}/../upload && mkdir -p ${WEBSERVER_DOC_ROOT}/../save && chown www-data:www-data ${WEBSERVER_DOC_ROOT}/../save && chmod a+w ${WEBSERVER_DOC_ROOT}/../save;
140- grep -qxF 'ServerName 127.0.0.1' ${APACHE_CONFDIR }/apache2.conf || echo -e '\nServerName 127.0.0.1' >> ${APACHE_CONFDIR }/apache2.conf; 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;
146+ grep -qxF 'ServerName 127.0.0.1' ${APACHE_CONFDIR_PREFIX }/apache2.conf || echo -e '\nServerName 127.0.0.1' >> ${APACHE_CONFDIR_PREFIX }/apache2.conf; 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;
141147 a2enmod ssl && a2ensite default-ssl && a2dissite 000-default && /docker-entrypoint.sh 'apache2-foreground'"
142148
143149 database :
@@ -188,7 +194,7 @@ services:
188194 labels :
189195 - " docker-volume-backup.stop-during-backup=true"
190196 command : " redis-server ${REDIS_CONF_PREFIX}/redis/redis.conf"
191-
197+
192198 backup :
193199 image : ' futurice/docker-volume-backup'
194200 container_name : backup
0 commit comments