From 09eae6904174bb0e71ebb43d65ae54bea50222d6 Mon Sep 17 00:00:00 2001 From: mace Date: Sun, 7 Jun 2026 16:50:14 +0200 Subject: [PATCH] upgrade postgres --- README.md | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 761d69a..c81bdcc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A self-hosted RSS reader: a Rust/actix-web + Diesel/PostgreSQL backend with a Vu - **Backend**: Rust, actix-web, Diesel ORM, PostgreSQL, JWT auth - **Frontend**: Vue 3, Vite, axios -- **Database**: PostgreSQL 15 +- **Database**: PostgreSQL 18 --- @@ -126,7 +126,7 @@ docker compose up --build -d This builds three images and starts them on a shared network: -- **`postgres`** — PostgreSQL 15, data persisted in the `postgres_data` volume, reachable on `localhost:5432` +- **`postgres`** — PostgreSQL 18, data persisted in the `postgres_data` volume, reachable on `localhost:5432` - **`backend`** — multi-stage build (compiles the Rust binary in a `rust:slim` builder, runs it in a slim `debian` runtime image); runs embedded Diesel migrations automatically on startup; listens on `0.0.0.0:8001` - **`frontend`** — multi-stage build (compiles the Vue app with `node:20-alpine`, serves the static bundle with `nginx:alpine`); listens on `0.0.0.0:8080` and proxies `/api/` to the `backend` service over Docker's internal network diff --git a/docker-compose.yml b/docker-compose.yml index 4ec9e6f..20ef458 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: postgres: container_name: "rss-postgres" - image: "postgres:15" + image: "postgres:18" ports: - "5432:5432" environment: @@ -9,7 +9,7 @@ services: - "POSTGRES_DB=rss" - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" volumes: - - postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql backend: container_name: "rss-backend"