dev
This commit is contained in:
parent
bab02f1d8a
commit
397c549312
14
compose.yml
14
compose.yml
|
@ -1,23 +1,25 @@
|
|||
---
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
restart: unless-stopped
|
||||
image: listmonk/listmonk:latest
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
environment:
|
||||
- TZ=Etc/UTC
|
||||
- LISTMONK_DB_HOST=db
|
||||
- LISTMONK_DB_HOST=${STACK_NAME}_db
|
||||
secrets:
|
||||
- db_password
|
||||
- admin_password
|
||||
depends_on:
|
||||
- db
|
||||
configs:
|
||||
- source: config_toml
|
||||
target: /listmonk/config.toml
|
||||
- source: app_entrypoint
|
||||
target: /docker_entrypoint.sh
|
||||
target: /docker-entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
deploy:
|
||||
|
@ -41,7 +43,6 @@ services:
|
|||
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
||||
- POSTGRES_USER=listmonk
|
||||
- POSTGRES_DB=listmonk
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U listmonk"]
|
||||
interval: 10s
|
||||
|
@ -62,11 +63,10 @@ configs:
|
|||
config_toml:
|
||||
name: ${STACK_NAME}_config_toml_${CONFIG_TOML_VERSION}
|
||||
file: config.toml.tmpl
|
||||
# template_driver: golang
|
||||
template_driver: golang
|
||||
app_entrypoint:
|
||||
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
||||
file: docker-entrypoint.sh
|
||||
# template_driver: golang
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
|
|
@ -5,7 +5,7 @@ admin_password = "{{ secret "admin_password" }}"
|
|||
|
||||
# Database.
|
||||
[db]
|
||||
host = "{{ env "LISTMONK_DB_HOST" }} "
|
||||
host = "{{ env "LISTMONK_DB_HOST" }}"
|
||||
port = 5432
|
||||
user = "listmonk"
|
||||
password = "{{ secret "db_password" }}"
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
cd /listmonk
|
||||
./listmonk --install || ./listmonk --upgrade
|
||||
./listmonk --install --yes --idempotent
|
||||
./listmonk --upgrade --yes
|
||||
./listmonk
|
||||
|
|
Loading…
Reference in New Issue