frankenphp/docs/config.md

21 lines
656 B
Markdown
Raw Normal View History

2022-10-14 10:20:57 +00:00
# Configuration
FrankenPHP, Caddy as well the Mercure and Vulcain modules can be configured using [the formats supported by Caddy](https://caddyserver.com/docs/getting-started#your-first-config).
In the Docker image, the `Caddyfile` is located at `/etc/Caddyfile`.
You can also configure PHP using `php.ini` as usual.
In the Docker image, the `php.ini` file is located at `/usr/local/lib/php.ini`.
2022-10-15 16:40:13 +00:00
## Enable the Debug Mode
When using the Docker image, set the `CADDY_DEBUG` environment variable to `debug` to enable the debug mode:
2022-10-15 16:40:13 +00:00
```
docker run -v $PWD:/app/public \
-e CADDY_DEBUG=debug \
2022-10-15 16:40:13 +00:00
-p 80:80 -p 443:443 \
dunglas/frankenphp
```