Skip to content

Issues with a docker compose installation #967

Answered by szymonhajbowicz
SirEndii asked this question in Q&A
Discussion options

You must be logged in to vote

If you don't use Caddy as a web server, pelican only exposes php fpm, which is a php interperter. The easiest way to make it work is to enable Caddy, mount Caddyfile to your host machine from container /etc/caddy/Caddyfile and set the Caddyfile config to something like this:

:80 {
    root * /var/www/html/public
    encode gzip

    php_fastcgi 127.0.0.1:9000
    file_server
}

Then in the compose.yml file, change port binging to "9001:80"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SirEndii
Comment options

Answer selected by SirEndii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants