You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.4 KiB

# Development environment override
services:
php:
image: unfold-php
build:
context: .
target: frankenphp_dev
volumes:
- ./:/app
- ./frankenphp/Caddyfile:/etc/caddy/Caddyfile:ro
- ./frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/app.conf.d/20-app.dev.ini:ro
# If you develop on Mac or Windows you can remove the vendor/ directory
# from the bind-mount for better performance by enabling the next line:
- /app/vendor
environment:
# Set to 1 to run `app:prewarm` after migrations on php container start (see README).
# PREWARM_ON_START: "0"
# develop: xdebug_info(), better stack traces, etc. Use debug,develop for step debugging (IDE).
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-develop}"
ports:
# Defaults avoid crowded 8080/8443; override with HTTP_PORT / HTTPS_PORT in .env
- "127.0.0.1:${HTTP_PORT:-9080}:80/tcp"
- "127.0.0.1:${HTTPS_PORT:-9443}:443/tcp"
- "127.0.0.1:${HTTPS_PORT:-9443}:443/udp"
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
tty: true
###> doctrine/doctrine-bundle ###
database:
restart: always
# Optional host access for mysql clients (3307 avoids clashing with a local MySQL on 3306).
ports:
- "127.0.0.1:3307:3306"
###< doctrine/doctrine-bundle ###