-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Hey, I am a little bit at a loss with this issue. Maybe it is because of my minimal docker knowledge. I want to make a proof of concept and present librebooking to a client. When I build it locally it all works well, but when I try to setup the docker images in coolify on my VPS I get stuck.
I can access the frontend under {url}/Web just fine. But when I try to do the setup via the /Install Path it just returns a 404. The only difference between my local deployment and the VPS is that I changed the port for the host from 80 to 8081 because I want to use traefik from coolify as a proxy.
Docker-Compose local:
name: librebooking
services:
db:
image: linuxserver/mariadb:10.6.13
restart: always
volumes:
- db_data:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- MYSQL_ROOT_PASSWORD=xxx
app:
image: librebooking/librebooking:develop
restart: always
depends_on:
- db
ports:
- "80:80"
volumes:
- app_config:/config
environment:
- LB_DB_NAME=xxx
- LB_DB_USER=xxx
- LB_DB_USER_PWD=xxx
- LB_DB_HOST=db
- LB_INSTALL_PWD=xxx
- TZ=Europe/Berlin
volumes:
db_data:
app_config:
Docker-Compose on VPS:
name: librebooking
services:
db:
image: 'linuxserver/mariadb:10.6.13'
restart: always
volumes:
- 'db_data:/config'
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- MYSQL_ROOT_PASSWORD=xxx
app:
image: 'librebooking/librebooking:4.0.0'
restart: always
depends_on:
- db
ports:
- '8081:80'
volumes:
- 'app_config:/config'
environment:
- LB_DB_NAME=xxx
- LB_DB_USER=xxx
- LB_DB_USER_PWD=xxx
- LB_DB_HOST=db
- LB_INSTALL_PWD=xxx
- TZ=Europe/Berlin
volumes:
db_data: null
app_config: null
Could you maybe point me into the right direction?
On my VPS I get the following error in the container logs:
[php:notice] [pid 101:tid 101] [client xx.xxx.xx.xxx:0] Error: TypeError: mysqli_select_db(): Argument #1 ($mysql) must be of type mysqli, false given in /var/www/html/lib/Database/MySQL/MySqlConnection.php:42\nStack trace:\n#0 /var/www/html/lib/Database/MySQL/MySqlConnection.php(42): mysqli_select_db()\n#1 /var/www/html/lib/Database/Database.php(23): MySqlConnection->Connect()\n#2 /var/www/html/Domain/Access/AnnouncementRepository.php(11): Database->Query()\n#3 /var/www/html/Presenters/LoginPresenter.php(123): AnnouncementRepository->GetFuture()\n#4 /var/www/html/Pages/LoginPage.php(156): LoginPresenter->PageLoad()\n#5 /var/www/html/Web/index.php(22): LoginPage->PageLoad()\n#6 {main}