mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
phpcontainer tweaks for live use
This commit is contained in:
@@ -8,6 +8,12 @@ You should copy over the php.ini.
|
|||||||
|
|
||||||
In your data directory there should be a public folder for apache.
|
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
|
## Docker Compose Extend
|
||||||
|
|
||||||
Now using extend you can call the service:
|
Now using extend you can call the service:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ version: "3.3"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
php-apache:
|
php-apache:
|
||||||
image: "4lights/phpcontainer:latest"
|
image: ${PHPCONTAINER_IMAGE:-4lights/phpcontainer:latest}
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "${VOL_PATH:-./data}/website:/data"
|
- "${VOL_PATH:-./data}/website:/data"
|
||||||
|
|||||||
Reference in New Issue
Block a user