Skip to content

Commit 4f369c5

Browse files
committed
feat: update listmonk
1 parent 75542b0 commit 4f369c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

stacks/listmonk.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ services:
99
- /bin/sh
1010
- -c
1111
- |
12-
# ./listmonk --install --yes # Uncomment on first deploy
12+
if [ "$$INSTALL" = "true" ]; then
13+
./listmonk --install --yes
14+
fi
1315
rm config.toml
1416
./listmonk --new-config
15-
# ./listmonk --upgrade --yes # Uncomment to upgrade
17+
if [ "$$UPGRADE" = "true" ]; then
18+
./listmonk --upgrade --yes
19+
fi
1620
./listmonk
1721
environment:
1822
- LISTMONK_app__admin_username=${ADMIN_USERNAME:-admin}
@@ -24,6 +28,8 @@ services:
2428
- POSTGRES_USER=listmonk
2529
- POSTGRES_PASSWORD=myp@ssw0rd
2630
- DB_HOST=postgres
31+
- INSTALL=${INSTALL:-false}
32+
- UPGRADE=${UPGRADE:-false}
2733
deploy:
2834
labels:
2935
- traefik.enable=true

0 commit comments

Comments
 (0)