I am trying to install OJS on an Ubuntu VM using Portainer and docker compose. I am using the instructions found at https://gitlab.com/pkp-org/docker/ojs/-/blob/main/templates/dockerComposes/docker-compose-apache.template?ref_type=heads
I have populated portainer with the env variables required.
I have the following questions:
- I always use persistent volumes. What directory format (tree) should I create prior to running the docker container? From the compose file linked to above, it appears I need to create the following folders within a main ojs folder:
- db
- logs/db
- logs/app
- config
- migration
- public
- private
Is that correct?
-
I am able to get the software to get to the installation page, but I am confused about the database section. In the compose file, there is a
mariadb
db set up, so I am unsure why the installation instructions state the db in square brackets won’t work. What should I be entering in the database section of the installation page? -
I do not have a
/etc/localtime
folder on my Ubuntu VM. Should I create one? -
In the compose file, there is a statement “# WARNING: You can only enable file-volumes if file exists in the container.” Should I have a
config.inc.php
already or is one written during installation? If the latter, where is it created? In the /config folder that I mapped in the step above?
[Similar questions for the apache.htaccess
and php.custom.ini
files referred to in the compose file.]
- In the installation section called " File Settings | Directory for uploads", is the default
/var/www/files
folder correct for a docker compose install? Or, should I be pointing the installer to the./volumes/private
folder which, as per the compose file, is mapped to the/var/www/files
location?
Any assistance is much appreciated. Thanks.