Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b74e78a

Browse files
committedDec 19, 2017
Add the environment variable of the PHP version
1 parent 2306e9d commit b74e78a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Nginx
66
NGINX_HOST=localhost
77

8+
# PHP
9+
PHP_VERSION=latest
10+
811
# MySQL
912
MYSQL_HOST=mysql
1013
MYSQL_DATABASE=test

‎docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
- php
1919
- mysqldb
2020
php:
21-
image: nanoninja/php-fpm
21+
image: nanoninja/php-fpm:${PHP_VERSION}
2222
restart: always
2323
volumes:
2424
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"

0 commit comments

Comments
 (0)
Please sign in to comment.