Skip to content

Commit 054e62a

Browse files
committed
.env: support RESTART_POLICY
1 parent b7588cc commit 054e62a

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.docker/apachephp/app.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ services:
1111
# - ./97-memcached.ini:${PHP_INI_DIR}/97-memcached.ini
1212
- ./${XDEBUG_CONFIG_FILE:-98-xdebug.ini}:${PHP_INI_DIR}/98-xdebug.ini
1313
- ./99-custom-php-conf.ini:${PHP_INI_DIR}/99-custom-php-conf.ini
14-
- ./apache_default.conf:${APACHE_CONF_DIR}/000-default.conf
14+
- ./apache_default.conf:${APACHE_CONF_DIR}/000-default.conf
15+
restart: ${RESTART_POLICY:-no}

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ APACHE_CONF_DIR=/etc/apache2/sites-available
88
# Optional environment variables
99
# APP_PORT=8000
1010
# PHP_VERSION=5.6
11+
# RESTART_POLICY=on-failure
1112
# XDEBUG_CONFIG_FILE=98-xdebug-php5.ini

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ Exemple:
1717
COMPOSE_FILE=.docker/apachephp/app.yml,.docker/database/mysql.yml,.docker/database/phpmyadmin.yml
1818
1919
# [Optional] You can set php version, recommanded: 7.4, 8.4+
20-
APP_PORT=APP_PORT
2120
PHP_VERSION=8.4
2221
2322
# [Optional] php5 support, recommanded: 5.6
2423
PHP_VERSION=5.6
2524
XDEBUG_CONFIG_FILE=98-xdebug-php5.ini
2625
27-
#...
26+
# [Optional] Anothers docker settings, look at .env for complete list
27+
APP_PORT=8000
28+
RESTART_POLICY=on-failure
2829
```
2930

3031
Once prepare, use command lines:

0 commit comments

Comments
 (0)