Skip to content

Commit 23e364b

Browse files
committed
feat: update listmonk
1 parent 75542b0 commit 23e364b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎stacks/listmonk.yml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ services:
99
- /bin/sh
1010
- -c
1111
- |
12-
# ./listmonk --install --yes # Uncomment on first deploy
12+
echo "$$UPGRADE"
13+
echo "Hello world"
14+
if [ "$$INSTALL" = "true" ]; then
15+
./listmonk --install --yes
16+
fi
1317
rm config.toml
1418
./listmonk --new-config
15-
# ./listmonk --upgrade --yes # Uncomment to upgrade
19+
if [ "$$UPGRADE" = "true" ]; then
20+
./listmonk --upgrade --yes
21+
fi
1622
./listmonk
1723
environment:
1824
- LISTMONK_app__admin_username=${ADMIN_USERNAME:-admin}
@@ -24,6 +30,8 @@ services:
2430
- POSTGRES_USER=listmonk
2531
- POSTGRES_PASSWORD=myp@ssw0rd
2632
- DB_HOST=postgres
33+
- INSTALL=${INSTALL:-false}
34+
- UPGRADE=${UPGRADE:-false}
2735
deploy:
2836
labels:
2937
- traefik.enable=true

0 commit comments

Comments
 (0)