miniflux: db migration; https://eelkevdbos.medium.com/upgrade-postgresql-with-docker-compose-99d995e464
This commit is contained in:
parent
66981cdf0d
commit
b573487748
1 changed files with 6 additions and 6 deletions
|
@ -5,9 +5,9 @@ services:
|
||||||
image: "ghcr.io/miniflux/miniflux:2.2.0"
|
image: "ghcr.io/miniflux/miniflux:2.2.0"
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- mf-db16
|
- mf-db17
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: "postgres://miniflux:{{ lookup('viczem.keepass.keepass', 'miniflux_postgres_password', 'password') }}@mf-db16/miniflux?sslmode=disable"
|
DATABASE_URL: "postgres://miniflux:{{ lookup('viczem.keepass.keepass', 'miniflux_postgres_password', 'password') }}@mf-db17/miniflux?sslmode=disable"
|
||||||
RUN_MIGRATIONS: 1
|
RUN_MIGRATIONS: 1
|
||||||
# CREATE_ADMIN: 1
|
# CREATE_ADMIN: 1
|
||||||
# ADMIN_USERNAME: adminmf
|
# ADMIN_USERNAME: adminmf
|
||||||
|
@ -31,8 +31,8 @@ services:
|
||||||
traefik.http.services.miniflux.loadbalancer.server.port: 8080
|
traefik.http.services.miniflux.loadbalancer.server.port: 8080
|
||||||
|
|
||||||
######## Postgres ########
|
######## Postgres ########
|
||||||
mf-db16:
|
mf-db17:
|
||||||
container_name: "mf-db16"
|
container_name: "mf-db17"
|
||||||
image: "postgres:17.0"
|
image: "postgres:17.0"
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
@ -41,7 +41,7 @@ services:
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
POSTGRES_HOST_AUTH_METHOD: "md5" # Workaround beim Migration von 13 -> 16; https://eelkevdbos.medium.com/upgrade-postgresql-with-docker-compose-99d995e464 ;
|
POSTGRES_HOST_AUTH_METHOD: "md5" # Workaround beim Migration von 13 -> 16; https://eelkevdbos.medium.com/upgrade-postgresql-with-docker-compose-99d995e464 ;
|
||||||
volumes:
|
volumes:
|
||||||
- db16:/var/lib/postgresql/data
|
- db17:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- intern
|
- intern
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -69,7 +69,7 @@ services:
|
||||||
|
|
||||||
######## Volumes ########
|
######## Volumes ########
|
||||||
volumes:
|
volumes:
|
||||||
db16:
|
db17:
|
||||||
######## Networks ########
|
######## Networks ########
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
|
|
Loading…
Reference in a new issue