Hello, I installed ITFlow on ubuntu docker but im having a issue in the web setup. i can access the web setup and it asks for Database information. When i enter it and click next it gives the following error:
Database connection failed - please check and try again
mysqli_sql_exception: No such file or directory in /var/www/html/setup.php:789 Stack trace: #0 /var/www/html/setup.php(789): mysqli_connect() #1 {main}
These are my .ev file and the docker-compose.yml files
</ # Set container timezone
TZ=America/Toronto
# Used within the docker-compose.yml template to provide easy configuration for your domain.
ROOT_DOMAIN=itdocs.thetechnologystudio.com
# Generate a random password using `docker run php:8.0-apache openssl rand -base64 32`
ITFLOW_DB_PASS=Qdu@v96Ux7e*TukJ/>
</ version: "3.9"
########################### NETWORKS
networks:
wan:
name: wan
driver: bridge
itflow-db:
name: itflow-db
external: false
########################### VOLUMES
volumes:
itflow-db:
########################### ITFLOW
services:
itflow:
hostname: itflow
container_name: itflow
# Comment out build for docker.io image
image: lued/itflow
# build: .
restart: unless-stopped
depends_on:
- itflow-db
networks:
- wan
- itflow-db
ports:
- "86:8686"
environment:
- ITFLOW_NAME=ItDocs
- TZ=$TZ
- ITFLOW_URL=$ROOT_DOMAIN
- ITFLOW_PORT=8686
- ITFLOW_REPO=github.com/itflow-org/itflow
- ITFLOW_REPO_BRANCH=master
- ITFLOW_LOG_LEVEL=info
- ITFLOW_DB_HOST=itflow-db
- ITFLOW_DB_PASS=$ITFLOW_DB_PASS
volumes:
- ./itflow/:/var/www/html
itflow-db:
hostname: itflow-db
container_name: itflow-db
image: mariadb:10.6.11
restart: always
networks:
- itflow-db
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=true
- MARIADB_DATABASE=itflow
- MARIADB_USER=itflow
- MARIADB_PASSWORD=$ITFLOW_DB_PASS
volumes:
- itflow-db:/var/lib/mysql/ />
Any help would be awesome. Thank you.