I’m finishing the migration to a new server where I will use exclusively OJS on docker. So far, so good, but now I need to setup the certificates and I’m not sure how to proceed. The documentation of easyOJS and pkp/containers on github is lacking, and the previous posts about that are many years old.
Should I set up a volume to a custom external apache config?
First, congrats Luiz for your decission. I hope you won’t regreat.
It’s quite clear from your post that you are using the official docker images but let me clarify that I will assume you are. I mean, you can use easyOJS and pkp/containers documentation and then change the image or build your own.
Yes, this is what I recommend.
Docker let you create file-volumes that work great to keep your config persistent.
I attach to the end of this post an example of a compose.yml to show how could you do this:
It’s up to you but I prefer specialized reverse proxies instead of native apache one because you will get much more control and automatic stuff.
You have plenty of them… caddy, npm, traefik. I like traefik because (once is properly configured) you can talk to it with labels in your compose files (see an example at the end).
“docker specialist” are big words. Just doing my best.
Some examples
Create an “standard” compose.yml common to all your journals.
Variables will be extracted from your .env file so you can copy and paste this literally to all your instances.
Additionally you can create a compose.override.yml with stuff that only applies to an specific journal and docker will read both together. You can test the final compose with “docker compose config”.
#########################################################################
# docker-compose.override.yml – Unified override for OJS
# Supports OJS 3.2, 3.3, 3.4, 3.5
#
# Site: athenea
# Tool: ojs
# Version: lts-3_3
# Creation: 2026-09-29T14:19:00Z
#########################################################################
services:
app:
labels:
- "traefik.enable=true"
- "traefik.http.routers.athenea-secure.rule=Host(`cory-athenea.precarietat.net`,`www.atheneadigital.net`)"
- "traefik.http.routers.athenea-secure.entrypoints=websecure"
- "traefik.http.routers.athenea-secure.tls=true"
- "traefik.http.routers.athenea-secure.tls.certresolver=leresolver"
volumes:
# Read-only shared folder for plugins (e.g., plugins/3_3)
- ../shared/plugins/3_3:/var/www/html/plugins:ro
# Some shared images and files
- ../shared/images:/var/www/html/common/images:ro
- ../shared/typos:/var/www/html/common/typos:ro
- ../shared/images/favicon.ico:/var/www/html/favicon.ico:ro
# If you need to apply apply a patch and you don't want to modify the official image:
- ../shared/patch/3_3/lib/pkp/classes/core/PKPRequest.inc.php:/var/www/html/lib/pkp/classes/core/PKPRequest.inc.php:ro
networks:
- proxy
networks:
proxy:
external: true
PD: Funny coincidence: I’m actually giving this talk today in the National Portals group, where I’ll be sharing some reflections that might be useful to you too. The session will be recorded, so I’ll send you the recording once it’s available. Any doubt, just mail or DM me.
@marc I’m having an issue that I’m not sure how to solve. When installing I updated the plugins, but I reloaded the container and I’m stuck now. I can’t updated/install plugins that I “installed” previously to the recreation of the container.
What can I do now? I suppose that I can change some setting in the DB, but I’m not sure which.
Plugins can be tricky because in ojs 3.3 (I think also in 3.5) if they are loaded and if they crash they can break your installation. Here you have an explanation of this specific issue and how we fixed in our service (in short? a read only volume that we disable when we upgrade to let docker take the release plugins).
But I’m just guessing and I don’t know where are you stuck. I mean, what did you do? what error did you get? You can see logs inside the container (or in volumes/logs/app/errors.log if you mapped the logs folders in your compose).
Looks like a different problem so please, open a new issue and mention me so I can follow.
I had the issue with updated plugins crashing the installation and managed to fix this.
The issue now is:
Migrate the installation successfuly;
Some plugins were updated plugins before the external volume were created (I would copy this directory out of the container later)
The sysadmin restarted the container recreating the container
Now those plugins probably have the version information updated, but the files are not (they must be using the original files from the docker image).
When I try to update them again, I’m greeted with a notification saying “installed version is higher than the new version” and it doesn’t complete the installation.
I solved the issues with the plugins, but now I found an issue with the docker OJS image, it is relying solely on the task_runner and job_runner instead of cron for processing scheduled tasks and jobs.