phpcontainer tweaks for live use

This commit is contained in:
2024-07-18 14:14:24 -07:00
parent a8244093ac
commit 9aadd4c1e4
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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:
+1 -1
View File
@@ -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"