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:
parent
217592aa18
commit
228ebe329d
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue