feat(service): upgrade listmonk to v6

This commit is contained in:
peaklabs-dev
2026-01-20 23:29:11 +01:00
parent 9bc44f0509
commit 3d218c4f12

View File

@@ -7,7 +7,7 @@
services: services:
listmonk: listmonk:
image: listmonk/listmonk:latest image: listmonk/listmonk:v6.0.0
environment: environment:
- SERVICE_URL_LISTMONK_9000 - SERVICE_URL_LISTMONK_9000
- LISTMONK_app__address=0.0.0.0:9000 - LISTMONK_app__address=0.0.0.0:9000
@@ -18,17 +18,18 @@ services:
- LISTMONK_db__port=5432 - LISTMONK_db__port=5432
- TZ=Etc/UTC - TZ=Etc/UTC
volumes: volumes:
- "listmonk-data:/listmonk/uploads" - listmonk-data:/listmonk/uploads
depends_on:
postgres:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:9000"] test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:9000"]
interval: 5s interval: 5s
timeout: 20s timeout: 20s
retries: 10 retries: 10
depends_on:
postgres:
condition: service_healthy
listmonk-initial-database-setup: listmonk-initial-database-setup:
image: listmonk/listmonk:latest image: listmonk/listmonk:v6.0.0
command: "./listmonk --install --yes --idempotent" command: "./listmonk --install --yes --idempotent"
restart: "no" restart: "no"
depends_on: depends_on:
@@ -40,14 +41,15 @@ services:
- LISTMONK_db__user=$SERVICE_USER_POSTGRES - LISTMONK_db__user=$SERVICE_USER_POSTGRES
- LISTMONK_db__password=$SERVICE_PASSWORD_POSTGRES - LISTMONK_db__password=$SERVICE_PASSWORD_POSTGRES
- LISTMONK_db__port=5432 - LISTMONK_db__port=5432
postgres: postgres:
image: "postgres:latest" image: postgres:18-alpine
environment: environment:
- POSTGRES_DB=listmonk - POSTGRES_DB=listmonk
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_USER=$SERVICE_USER_POSTGRES - POSTGRES_USER=$SERVICE_USER_POSTGRES
volumes: volumes:
- "pg-data:/var/lib/postgresql/data" - postgres-data:/var/lib/postgresql
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s interval: 5s