Last active
January 14, 2022 12:53
-
-
Save wilcorrea/7b9e968ec35d239809b742b4efba431e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
# Networks | |
networks: | |
# Internal network | |
internal: | |
driver: bridge | |
# Volumes | |
volumes: | |
# MySQL volume | |
sandbox-mysql_data: | |
driver: local | |
# Redis volume | |
sandbox-redis_data: | |
driver: local | |
# Services | |
services: | |
# Nginx | |
sandbox-nginx: | |
image: webdevops/php-nginx-dev:8.0 | |
container_name: sandbox-nginx | |
networks: | |
- internal | |
working_dir: /var/www/app | |
volumes: | |
- .:/var/www/app | |
depends_on: | |
- sandbox-mysql | |
- sandbox-redis | |
environment: | |
- WEB_DOCUMENT_ROOT=/var/www/app/public | |
- PHP_DISPLAY_ERRORS=0 | |
- PHP_MEMORY_LIMIT=2048M | |
- PHP_MAX_EXECUTION_TIME=300 | |
- PHP_POST_MAX_SIZE=500M | |
- PHP_UPLOAD_MAX_FILESIZE=500M | |
- PHP_DEBUGGER="xdebug" | |
# - PHP_IDE_CONFIG=serverName=_ | |
- XDEBUG_REMOTE_AUTOSTART=On | |
- XDEBUG_REMOTE_CONNECT_BACK=Off | |
- XDEBUG_REMOTE_HOST=host.docker.internal | |
- XDEBUG_REMOTE_PORT=9090 | |
- XDEBUG_PROFILER_ENABLE=Off | |
- PHP_DATE_TIMEZONE=UTC | |
expose: | |
- 9090 | |
ports: | |
- 8080:80 | |
# MySQL | |
sandbox-mysql: | |
image: mysql:5.7 | |
container_name: sandbox-mysql | |
networks: | |
- internal | |
working_dir: /var/www/app | |
volumes: | |
- sandbox-mysql_data:/var/lib/mysql | |
- .:/var/www/app | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_DATABASE=database | |
- MYSQL_USER=user | |
- MYSQL_PASSWORD=password | |
ports: | |
- 3306:3306 | |
# Redis | |
sandbox-redis: | |
image: redis:4.0 | |
container_name: sandbox-redis | |
command: --appendonly yes | |
networks: | |
- internal | |
volumes: | |
- sandbox-redis_data:/data | |
ports: | |
- 6379:6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment