mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 05:20:43 +00:00
feat(service): upgrade listmonk to v6
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user