From 9b437d546a1ab5670ef6488bcd81d0d641f6a144 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Thu, 8 May 2025 12:47:53 +0200 Subject: [PATCH 1/2] Update to PostgreSQL 17 and PostGIS 3.5 --- .app_version | 2 +- .devcontainer/docker-compose.yml | 2 +- CHANGELOG.md | 18 +++++++++++++++++- docker/Dockerfile.dev | 2 +- docker/Dockerfile.prod | 2 +- docker/docker-compose.production.yml | 2 +- docker/docker-compose.yml | 2 +- docs/synology/docker-compose.yml | 2 +- 8 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.app_version b/.app_version index 4ccdce11..4e8f395f 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.25.10 +0.26.0 diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index d697d8f8..04fd589b 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -48,7 +48,7 @@ services: start_period: 30s timeout: 10s dawarich_db: - image: postgres:17-alpine + image: postgis/postgis:17-3.5-alpine container_name: dawarich_db volumes: - dawarich_db_data:/var/lib/postgresql/data diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fd0ce0d..f9945b0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -# 0.25.10 - 2025-05-02 +# 0.26.0 - 2025-05-08 + +⚠️ This release includes a breaking change. ⚠️ + +Starting this version, Dawarich requires PostgreSQL 17 with PostGIS 3.5. If you haven't updated your database image yet, please consider doing so as suggested in the [docs on the website](https://dawarich.app/docs/tutorials/update-postgresql/). Simply replacing the image in the `docker-compose.yml` unfortunately doesn't work, as PostgreSQL 17 is not backwards compatible with 14 (which was used in previous versions). + +If you have encountered problems with moving to a PostGIS image while still on Postgres 14, I collected a selection of compatible docker images for different CPU architectures, which you can also find in the [docs](https://dawarich.app/docs/tutorials/moving-to-postgis/). New users will be automatically provisioned with PostgreSQL 17 with PostGIS 3.5 with default `docker-compose.yml` file. + +**You still may use PostgreSQL 14, but no support will be provided for it starting this version. It's strongly recommended to update to PostgreSQL 17.** + +## Changed + +- Dawarich now uses PostgreSQL 17 with PostGIS 3.5 by default. + + + +# 0.25.10 - 2025-05-08 ## Added diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index 74ac8e32..bf5c796f 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -39,7 +39,7 @@ COPY ../Gemfile ../Gemfile.lock ../.ruby-version ../vendor ./ # Install all gems into the image RUN bundle config set --local path 'vendor/bundle' \ && bundle install --jobs 4 --retry 3 \ - && rm -rf vendor/bundle/ruby/3.3.0/cache/*.gem + && rm -rf vendor/bundle/ruby/3.4.1/cache/*.gem # Copy the rest of the application COPY ../. ./ diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 1d383cc7..4bd70469 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -37,7 +37,7 @@ COPY ../Gemfile ../Gemfile.lock ../.ruby-version ../vendor ./ RUN bundle config set --local path 'vendor/bundle' \ && bundle config set --local without 'development test' \ && bundle install --jobs 4 --retry 3 \ - && rm -rf vendor/bundle/ruby/3.3.0/cache/*.gem + && rm -rf vendor/bundle/ruby/3.4.1/cache/*.gem COPY ../. ./ diff --git a/docker/docker-compose.production.yml b/docker/docker-compose.production.yml index 054571f7..8dbf3f28 100644 --- a/docker/docker-compose.production.yml +++ b/docker/docker-compose.production.yml @@ -17,7 +17,7 @@ services: start_period: 30s timeout: 10s dawarich_db: - image: postgres:17-alpine # TODO: Use postgis here + image: postgis/postgis:17-3.5-alpine shm_size: 1G container_name: dawarich_db volumes: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index dc32f337..bfadcb5a 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -17,7 +17,7 @@ services: start_period: 30s timeout: 10s dawarich_db: - image: postgis/postgis:14-3.5-alpine + image: postgis/postgis:17-3.5-alpine shm_size: 1G container_name: dawarich_db volumes: diff --git a/docs/synology/docker-compose.yml b/docs/synology/docker-compose.yml index cfb625a9..8beafa59 100644 --- a/docs/synology/docker-compose.yml +++ b/docs/synology/docker-compose.yml @@ -10,7 +10,7 @@ services: - ./redis:/var/shared/redis dawarich_db: - image: postgis/postgis:14-3.5-alpine + image: postgis/postgis:17-3.5-alpine container_name: dawarich_db restart: unless-stopped environment: From 911841134efcbc29615797b534bcab6ca51c0a31 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Thu, 8 May 2025 16:24:54 +0200 Subject: [PATCH 2/2] Update readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aa76a1b..150271e9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Donate using crypto: [0x6bAd13667692632f1bF926cA9B421bEe7EaEB8D4](https://ethers You can track your location with the following apps: +- πŸ’« [Dawarich for iOS](https://dawarich.app/docs/dawarich-for-ios/) - 🌍 [Overland](https://dawarich.app/docs/tutorials/track-your-location#overland) - πŸ›°οΈ [OwnTracks](https://dawarich.app/docs/tutorials/track-your-location#owntracks) - πŸ—ΊοΈ [GPSLogger](https://dawarich.app/docs/tutorials/track-your-location#gps-logger) @@ -76,7 +77,7 @@ Simply install one of the supported apps on your device and configure it to send πŸ†• **Default Credentials** - **Username**: `demo@dawarich.app` - **Password**: `password` -(Feel free to change them in the account settings.) +Feel free to change them in the account settings. --- @@ -101,6 +102,10 @@ Simply install one of the supported apps on your device and configure it to send ### πŸ“Š Statistics - Analyze your travel history: number of countries/cities visited, distance traveled, and time spent, broken down by year and month. +### ✈️ Trips + +- Create a trip to visualize your travels between two points in time. You'll be able to see the route, distance, and time spent, and also add notes to your trip. If you have Immich or Photoprism integration, you'll also be able to see photos from your trips! + ### πŸ“Έ Integrations - Provide credentials for Immich or Photoprism (or both!) and Dawarich will automatically import geodata from your photos. - You'll also be able to visualize your photos on the map!