Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b74e78a

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

AltStyle によって変換されたページ (->オリジナル) /