From 9aadd4c1e409378b9271037cfd82524649f18675 Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Thu, 18 Jul 2024 14:14:24 -0700 Subject: [PATCH] phpcontainer tweaks for live use --- phpcontainer/README.md | 6 ++++++ phpcontainer/docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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"