Skip to content

Commit 06d1b8f

Browse files
committed
Add: Docker compose dev environment.
1 parent 888fa3f commit 06d1b8f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3.9'
2+
# For all options see
3+
# https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx-dev.html
4+
services:
5+
php:
6+
image: webdevops/php-nginx-dev:8.2
7+
container_name: diff
8+
working_dir: /app
9+
environment:
10+
- WEB_DOCUMENT_ROOT=/app/example
11+
- WEB_DOCUMENT_INDEX=example.php
12+
- PHP_DISPLAY_ERRORS=1
13+
- PHP_MEMORY_LIMIT=2048M
14+
- PHP_MAX_EXECUTION_TIME=-1
15+
- PHP_DATE_TIMEZONE = Europe/Berlin
16+
- XDEBUG_IDE_KEY=PHPSTORM
17+
ports:
18+
- "88:80"
19+
- "9000:9000"
20+
volumes:
21+
- ./:/app:rw,cached

0 commit comments

Comments
 (0)