Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade listmonk version #1231

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/dokploy/templates/listmonk/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
db:
image: postgres:13
image: postgres:17-alpine
ports:
- 5432
networks:
Expand All @@ -19,7 +19,7 @@ services:
- listmonk-data:/var/lib/postgresql/data

setup:
image: listmonk/listmonk:v3.0.0
image: listmonk/listmonk:v4.1.0
networks:
- dokploy-network
volumes:
Expand All @@ -35,7 +35,7 @@ services:

app:
restart: unless-stopped
image: listmonk/listmonk:v3.0.0
image: listmonk/listmonk:v4.1.0
environment:
- TZ=Etc/UTC
depends_on:
Expand Down
7 changes: 1 addition & 6 deletions apps/dokploy/templates/listmonk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import {
type DomainSchema,
type Schema,
type Template,
generatePassword,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const randomDomain = generateRandomDomain(schema);
const adminPassword = generatePassword(32);

const domains: DomainSchema[] = [
{
Expand All @@ -19,7 +17,7 @@ export function generate(schema: Schema): Template {
];

const envs = [
`# login with admin:${adminPassword}`,
`# visit the page to setup your super admin user`,
"# check config.toml in Advanced / Volumes for more options",
];

Expand All @@ -29,9 +27,6 @@ export function generate(schema: Schema): Template {
content: `[app]
address = "0.0.0.0:9000"

admin_username = "admin"
admin_password = "${adminPassword}"

[db]
host = "db"
port = 5432
Expand Down