Skip to content

Commit b74e78a

Browse files
committed
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

+3
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

+1-1
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)