forum/docker-compose.override.yml

29 lines
862 B
YAML
Raw Normal View History

version: "3.4"
# Development environment override
services:
php:
build:
target: app_php_dev
volumes:
2022-01-28 21:46:12 +01:00
- ./:/srv/app
- ./docker/php/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro
2022-07-31 21:01:13 +02:00
# If you develop on Mac or Windows you can remove the var/ and vendor/ directories
# from the bind-mount for better performance by enabling the next 2 lines:
#- /srv/app/var
#- /srv/app/vendor
environment:
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
caddy:
volumes:
- ./public:/srv/app/public:ro
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
###> symfony/mercure-bundle ###
###< symfony/mercure-bundle ###