We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75542b0 commit 4f369c5Copy full SHA for 4f369c5
stacks/listmonk.yml
@@ -9,10 +9,14 @@ services:
9
- /bin/sh
10
- -c
11
- |
12
- # ./listmonk --install --yes # Uncomment on first deploy
+ if [ "$$INSTALL" = "true" ]; then
13
+ ./listmonk --install --yes
14
+ fi
15
rm config.toml
16
./listmonk --new-config
- # ./listmonk --upgrade --yes # Uncomment to upgrade
17
+ if [ "$$UPGRADE" = "true" ]; then
18
+ ./listmonk --upgrade --yes
19
20
./listmonk
21
environment:
22
- LISTMONK_app__admin_username=${ADMIN_USERNAME:-admin}
@@ -24,6 +28,8 @@ services:
24
28
- POSTGRES_USER=listmonk
25
29
- POSTGRES_PASSWORD=myp@ssw0rd
26
30
- DB_HOST=postgres
31
+ - INSTALL=${INSTALL:-false}
32
+ - UPGRADE=${UPGRADE:-false}
27
33
deploy:
34
labels:
35
- traefik.enable=true
0 commit comments