HOST / IMAGE DETAILS
Machine : remote VPS
Server : Apache2.4
OS distro : Ubuntu 22.04 LTS
DB server and database : MariaDB
…
Docker image : algoo/tracim
Hello,
Prior to run a container for the first time, and in the purpose to better understand how docker works, I wish someone to reply simple questions at the end of this post, but I first wish to know if :
My environment configuration of choice is viable
My command line to run tracim app’s container do match my environment configuration of choice
DOCKER CL
docker run --name tracim --env-file .env -p 8080:80 - p 3306:3306 -v ~/var/www/clients/client1/web1/web/tracim/etc:/etc/tracim -v ~/var/www/clients/client1/web1/web/tracim/var:/var/tracim -d algoo/tracim
ENVIRONMENT CONFIGURATION
-
It assumes pre-existing domain, blank website, and a non-containerized database, set on host (VPS), from using ISPConfig panel (kind of cpanel).
-
It assumes that accordingly to ISPConfig panel default file structure, I created required volumes “tracim/etc“, “tracim/var“, within the pre-existing blank website’s root directory that is located at /var/www/clients/client1/web1/web/
-
It assumes that I changed MariaDB server’s bind-address to 172.17.0.1, so to allow remote connexion from tracim app’s container.
-
It assumes that the dbuser has been allowed to remotly access the database from any host (done from a check-box in ISPConfig panel).
-
It assumes that, so to pass the database environment variables to container, I created and edited a .ENV file within “tracim“ volume located at var/www/clients/client1/web1/web/
QUESTIONS
-
Q1 : do I have to make a change so my website’s root directory to be tracim app’s container, or is this unnecessary ?
-
Q2 : do I have to add the “APP_URL=value“ to the .ENV file, and could it be that accessing tracim login page fails if missing ?
-
Q3 : do I have to add a host entry to the container by completing the command line with e.g. : –add-host yourdomain.com:127.0.0.1 ?
-
Q4 : Is the use of a Cpanel a barrier when setting up a docker container ?
-
Q5 : Should I consider the “tracim“ volume as my docker project’s directory, and if not, where is such a docker project directory located ?
Regards