mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
25 lines
400 B
Markdown
25 lines
400 B
Markdown
# 4 Light's Php Container
|
|
|
|
Proxy Port: 80
|
|
|
|
## Preperation
|
|
|
|
You should copy over the php.ini.
|
|
|
|
In your data directory there should be a public folder for apache.
|
|
|
|
## Docker Compose Extend
|
|
|
|
Now using extend you can call the service:
|
|
|
|
```yaml
|
|
version: '3.4'
|
|
|
|
services:
|
|
stash:
|
|
extends:
|
|
file: ${COOKBOOK}/phpcontainer/docker-compose.yml
|
|
service: php-apache
|
|
env_file:
|
|
- .env
|
|
``` |