-
The provided docker image for frankenphp is based on Debian. I don't want to run Debian, I want to run Alma Linux, because that's what I've standardised around. Is it possible to provide an alternate Dockerfile to enable this? E.g. This is how I was running it with PHP-fpm and Caddy: networks:
web-network:
services:
caddy:
image: caddy:latest
restart: on-failure
volumes:
- ./caddy/data:/data
- ./caddy/config:/config
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/logs:/logs
- ./app:/var/www/html
ports:
- "80:80"
- "443:443"
networks:
- web-network
# this bit allows caddy on docker to see the listener on the external (to docker) port 8080 (which listens locally on my laptop)
extra_hosts:
host.docker.internal: host-gateway
php:
build: ./php
tty: true
restart: on-failure
volumes:
- ./app:/var/www/html
- ./php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./php/conf.d/requests.ini:/usr/local/etc/php/conf.d/requests.ini
networks:
- web-network
extra_hosts:
host.docker.internal: host-gateway
expose:
- "9003" # Expose the Xdebug port The idea being that the Have I got the wrong end of the stick? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
We base the images off of the standard PHP images. You are welcome to build them off of another base image but |
Beta Was this translation helpful? Give feedback.
-
One last problem. The docker compose doesn't seem to be quite working. I.e. I can't connect to the mysql service from the frankenphp service. When I do
Any ideas? |
Beta Was this translation helpful? Give feedback.
The
run
subcommand is missing in yourCMD
entry. Callingfrankenphp
without a subcommand will just display the lot of available subcommands.