Skip to content
Discussion options

You must be logged in to vote

I solved it this way, another way would be to overwrite the FrankenPHP Caddyfile, but i prefer to do it with environment variables without expecting secondary results.

docker run \
  -e FRANKENPHP_CONFIG="worker ./web/index.php" \
  -e SERVER_NAME="https://localhost:8443" \
  -e CADDY_GLOBAL_OPTIONS=$'auto_https off\nhttps_port 8443' \
  -e CADDY_SERVER_EXTRA_DIRECTIVES="tls /app/web/ssl/localhost.pem /app/web/ssl/localhost-key.pem" \  
  -v $PWD:/app \
  -p 8443:8443 \
  --name yii2-frankenphp-worker \
  dunglas/frankenphp

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by terabytesoftw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant