I'm attemping to run Listmonk using the provided Docker method, but I'm encountering an issue related to systemd-oom
that I am struggling to understand.
I've mapped the /var/lib/postgresql/data
volume in the db
service to my local /srv/listmonk/data
folder and set the SELinux context appropriately.
Here is the issue: as soon as I run sudo docker-compose up -d
(I'm using podman-docker
), the owner of the /srv/listmonk/data
directory and all files within it becomes systemd-oom
.
The app runs fine and I am able to access and use it, but I can't understand what's happening here. My server has 64GB of RAM and I haven't seen any spikes in usage while starting the containers that might be triggering systemd-oom
. Could this be happening from within the db
container itself?
How can I prevent this from happening?
Here is my docker-compose.yml
:
version: "3.7"
x-app-defaults: &app-defaults
restart: unless-stopped
image: listmonk/listmonk:latest
ports:
- "9000:9000"
networks:
- listmonk
environment:
- TZ=Canada/Eastern
x-db-defaults: &db-defaults
image: postgres:13
ports:
- "9432:5432"
networks:
- listmonk
environment:
- POSTGRES_PASSWORD=<...>
- POSTGRES_USER=listmonk
- POSTGRES_DB=listmonk
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U listmonk"]
interval: 10s
timeout: 5s
retries: 6
services:
db:
<<: *db-defaults
container_name: listmonk_db
volumes:
- /srv/listmonk/data:/var/lib/postgresql/data:Z
app:
<<: *app-defaults
container_name: listmonk_app
depends_on:
- db
volumes:
- /srv/listmonk/config.toml:/listmonk/config.toml:Z
- /srv/listmonk/uploads:/listmonk/uploads
networks:
listmonk: