Upgrade Listmonk to v5.0.0 (#112)
Some checks are pending
Deploy to Cloudflare Pages (Production) / Publish to Cloudflare Pages (push) Waiting to run
Validate Blueprints Structure and Meta / validate (push) Waiting to run

* Update Listmonk to version 5.0.0

Also move environment variables to Dokploy's environment management.

* Refactor Listmonk upgrade to v5.0.0

Move unused env variables back to compose file. Remove unnecessary setup container.
This commit is contained in:
jeff-h 2025-05-07 17:41:03 +10:00 committed by GitHub
parent 2a6bafb54b
commit 754c85368d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 20 deletions

View File

@ -3,10 +3,9 @@ services:
image: postgres:17-alpine
ports:
- 5432
environment:
- POSTGRES_PASSWORD=listmonk
- POSTGRES_USER=listmonk
- POSTGRES_PASSWORD=listmonk
- POSTGRES_DB=listmonk
restart: unless-stopped
healthcheck:
@ -17,28 +16,27 @@ services:
volumes:
- listmonk-data:/var/lib/postgresql/data
setup:
image: listmonk/listmonk:v4.1.0
volumes:
- ../files/config.toml:/listmonk/config.toml
depends_on:
- db
command:
[
sh,
-c,
"sleep 3 && ./listmonk --install --idempotent --yes --config config.toml",
]
app:
restart: unless-stopped
image: listmonk/listmonk:v4.1.0
image: listmonk/listmonk:v5.0.0
environment:
- LISTMONK_app__address=0.0.0.0:9000
- LISTMONK_db__user=listmonk
- LISTMONK_db__password=listmonk
- LISTMONK_db__database=listmonk
- LISTMONK_db__host=db
- LISTMONK_db__port=5432
- LISTMONK_db__ssl_mode=disable
- LISTMONK_db__max_open=25
- LISTMONK_db__max_idle=25
- LISTMONK_db__max_lifetime=300s
- TZ=Etc/UTC
depends_on:
- db
- setup
command: [ sh, -c, "./listmonk --install --idempotent --yes --config '' && ./listmonk --upgrade --yes --config '' && ./listmonk --config ''" ]
# --config (file) param is set to empty so that listmonk only uses the env vars (below) for config.
# --install --idempotent ensures that DB installation happens only once on an empty DB, on the first ever start.
# --upgrade automatically runs any DB migrations when a new image is pulled.
volumes:
- ../files/config.toml:/listmonk/config.toml
- listmonk-uploads:/listmonk/uploads