Add the environment variable of the PHP version
This commit is contained in:
3
.env
3
.env
@@ -5,6 +5,9 @@
|
||||
# Nginx
|
||||
NGINX_HOST=localhost
|
||||
|
||||
# PHP
|
||||
PHP_VERSION=latest
|
||||
|
||||
# MySQL
|
||||
MYSQL_HOST=mysql
|
||||
MYSQL_DATABASE=test
|
||||
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
- php
|
||||
- mysqldb
|
||||
php:
|
||||
image: nanoninja/php-fpm
|
||||
image: nanoninja/php-fpm:${PHP_VERSION}
|
||||
restart: always
|
||||
volumes:
|
||||
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
|
||||
|
||||
Reference in New Issue
Block a user