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.
|
||||
|
||||
|
||||
## env file
|
||||
|
||||
PHPCONTAINER_IMAGE=4lights/phpcontainer:latest
|
||||
VOL_PATH=/project_dir/project/data
|
||||
|
||||
## Docker Compose Extend
|
||||
|
||||
Now using extend you can call the service:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user