diff --git a/phpcontainer/README.md b/phpcontainer/README.md index f797ad0..0818c7b 100644 --- a/phpcontainer/README.md +++ b/phpcontainer/README.md @@ -8,6 +8,12 @@ You should copy over the php.ini. In your data directory there should be a public folder for apache. + +## env file + +PHPCONTAINER_IMAGE=4lights/phpcontainer:latest +VOL_PATH=/project_dir/project/data + ## Docker Compose Extend Now using extend you can call the service: diff --git a/phpcontainer/docker-compose.yml b/phpcontainer/docker-compose.yml index 313ea17..77cc92c 100644 --- a/phpcontainer/docker-compose.yml +++ b/phpcontainer/docker-compose.yml @@ -4,7 +4,7 @@ version: "3.3" services: php-apache: - image: "4lights/phpcontainer:latest" + image: ${PHPCONTAINER_IMAGE:-4lights/phpcontainer:latest} restart: always volumes: - "${VOL_PATH:-./data}/website:/data"