forked from coop-cloud/listmonk
Compare commits
20 Commits
3.0.0+v4.0.0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fc6cece84e | |||
| 2c53efc5fe | |||
| 542ff11abf | |||
| e6caad12ff | |||
| 9251725aac | |||
| 58e7c6cf8b | |||
| b31122c149 | |||
| c7962a301f | |||
| 43c842da64 | |||
| 2fa1d541aa | |||
| 23c629534d | |||
| e2d639f76f | |||
| 7685e1ac20 | |||
| ebfe1d007b | |||
| 0e034cc0d3 | |||
| 321c4ea18b | |||
| df06560b35 | |||
| b8aff2476e | |||
| c0445167bd | |||
| 3635c83a40 |
+1
-1
@@ -36,7 +36,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
@@ -4,4 +4,3 @@ DOMAIN=listmonk.example.com
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
SECRET_ADMIN_PASSWORD_VERSION=v1
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
* **Status**: 2, beta
|
||||
* **Image**: [`listmonk/listmonk`](https://hub.docker.com/r/listmonk/listmonk/), 2, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Email**: ?
|
||||
* **Backups**: Yes
|
||||
* **Email**: Yes
|
||||
* **Tests**: 2
|
||||
* **SSO**: No
|
||||
<!-- endmetadata -->
|
||||
@@ -21,3 +21,4 @@
|
||||
to save secrets in `pass`)
|
||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to your Docker swarm box. Nothing to change apart from the DOMAIN at the moment.
|
||||
5. `abra app deploy YOURAPPDOMAIN`
|
||||
6. To make media uploads work, go to Settings->Media uploads and set upload path to "/uploads" and click the Save-button.
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export CONFIG_TOML_VERSION=v1
|
||||
export CONFIG_TOML_VERSION=v2
|
||||
export APP_ENTRYPOINT_VERSION=v1
|
||||
|
||||
+5
-9
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: listmonk/listmonk:v4.0.0
|
||||
image: listmonk/listmonk:v6.1.0
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
@@ -12,7 +12,6 @@ services:
|
||||
- LISTMONK_DB_HOST=${STACK_NAME}_db
|
||||
secrets:
|
||||
- db_password
|
||||
- admin_password
|
||||
depends_on:
|
||||
- db
|
||||
configs:
|
||||
@@ -32,12 +31,12 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=9000"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=3.0.0+v4.0.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=5.1.0+v6.1.0"
|
||||
volumes:
|
||||
- "uploads:/uploads"
|
||||
|
||||
db:
|
||||
image: postgres:13
|
||||
image: postgres:18
|
||||
networks:
|
||||
- internal
|
||||
secrets:
|
||||
@@ -52,7 +51,7 @@ services:
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
volumes:
|
||||
- "postgres_data:/var/lib/postgresql/data"
|
||||
- "postgres:/var/lib/postgresql"
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
@@ -66,9 +65,6 @@ secrets:
|
||||
db_password:
|
||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||
external: true
|
||||
admin_password:
|
||||
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
||||
external: true
|
||||
|
||||
configs:
|
||||
config_toml:
|
||||
@@ -85,5 +81,5 @@ networks:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
postgres:
|
||||
uploads:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
[app]
|
||||
address = "0.0.0.0:9000"
|
||||
admin_username = "admin"
|
||||
admin_password = "{{ secret "admin_password" }}"
|
||||
|
||||
# Database.
|
||||
[db]
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
!!! Postgres major version upgrade and volume change !!!
|
||||
We're bumping from postgres 13 to 18 and the storage location of files has
|
||||
changed from /var/lib/postgres/data to /var/lib/postgres/18. Volume was
|
||||
adjusted accordingly. Take a dump of DB before the upgrade by running
|
||||
|
||||
pg_dump -U listmonk -Fc -b -f /var/lib/postgres/data/dump
|
||||
|
||||
in the db container of the app. Then pull this file out from the docker volume
|
||||
|
||||
Then deploy the new version of the app. Next, copy the dump that you just
|
||||
made into new volume /var/lib/docker/volumes/your_app_name_postgres/_data/dump
|
||||
After that you can run
|
||||
|
||||
pg_restore --clean -U listmonk -d listmonk /var/lib/postgres/dump
|
||||
|
||||
Afterwards you should restart the db container and it should be all good.
|
||||
|
||||
Reference in New Issue
Block a user