Add the environment variable of the PHP version

This commit is contained in:
Vincent Letourneau committed 2017-12-19 11:20:12 +01:00
1 parent 2306e9df9d
commit b74e78af2d
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -5,6 +5,9 @@
# Nginx
NGINX_HOST=localhost
# PHP
PHP_VERSION=latest
# MySQL
MYSQL_HOST=mysql
MYSQL_DATABASE=test
+1 -1
View File
@@ -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"