Fix Listmonk one-click app (wiping DB every time) (#708)

Currently, every time the container is restarted the DB is wiped-out! 

This is due to `idempotent = false` by default (doc: "make --install run only if the database isn't already setup"). Setting ` --idempotent` ensures that DB will be initialized only if empty (i.e. the first time).

[source 1](57dbb9e5db/cmd/init.go (L108)), [source 2](e99c8ed86b/cmd/install.go (L26)), [source 3](e99c8ed86b/cmd/install.go (L46))
This commit is contained in:
MYerouPaleBlue 2022-09-04 20:49:52 +03:00 committed by GitHub
parent 217592aa18
commit 228ebe329d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ services:
containerHttpPort: 9000 containerHttpPort: 9000
dockerfileLines: dockerfileLines:
- FROM listmonk/listmonk:$$cap_listmonk_version - FROM listmonk/listmonk:$$cap_listmonk_version
- CMD yes | ./listmonk --install && ./listmonk - CMD yes | ./listmonk --install --idempotent && ./listmonk
volumes: volumes:
- $$cap_appname-data:/listmonk - $$cap_appname-data:/listmonk
depends_on: depends_on: