Issues with a docker compose installation #967
-
Disclaimer: I know that docker is not fully supported yet. I just hope that one of the collaborators or a community member can help me here. Greetings, But it just seems to freeze at the end?
I waited about 30 minutes but no luck. I am not sure if this is just not working yet or if I configured something wrong. GNU nano 7.2 compose.yml *
x-common:
panel:
&panel-environment
APP_URL: "https://pelican.intelligence-modding.de" # can be set to 'http://localhost' on port 80 only
ADMIN_EMAIL: "info@denizdemiroglu.de"
APP_DEBUG: "true"
APP_ENV: "production"
mail:
&mail-environment
MAIL_DRIVER: "log"
# MAIL_HOST: ""
# MAIL_PORT: ""
# MAIL_FROM: ""
# MAIL_USERNAME: ""
# MAIL_PASSWORD: ""
# MAIL_ENCRYPTION: ""
#
# ------------------------------------------------------------------------------------------
# DANGER ZONE BELOW
#
# The remainder of this file likely does not need to be changed. Please only make modifications
# below if you understand what you are doing.
#
services:
panel:
image: ghcr.io/pelican-dev/panel:latest
build: .
restart: always
networks:
- default
ports:
# - "80:80"
# - "443:443"
- "9001:9000" # enable when not using caddy to be abel to reach php-fpm
extra_hosts:
- "host.docker.internal:host-gateway" # shows the panel on te internal docker network as well. usually '172.17.0.1'
volumes:
- pelican-data:/pelican-data
- pelican-logs:/var/www/html/storage/logs
environment:
<<: [*panel-environment, *mail-environment]
XDG_DATA_HOME: /pelican-data
SKIP_CADDY: true # enable when not using caddy.
volumes:
pelican-data:
pelican-logs:
networks:
default:
ipam:
config:
- subnet: 172.20.0.0/16 And I have another question. How could I set up things like mysql? Are there any env variables for that or is there maybe a list for all env variables? I also have my nginx file here if someone needs it/sees something wrong
It would be sweet if anyone could help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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
Then in the compose.yml file, change port binging to "9001:80" |
Beta Was this translation helpful? Give feedback.
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:Then in the compose.yml file, change port binging to "9001:80"