set postgres version to 16

This commit is contained in:
Eduardo Silva 2024-11-07 11:35:47 -03:00
parent 47182487f1
commit 8fdb2650e1
4 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ services:
routerfleet-postgres:
container_name: routerfleet-postgres
restart: unless-stopped
image: postgres:latest
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
@ -26,7 +26,7 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=${TIMEZONE}
- COMPOSE_VERSION=02d
- COMPOSE_VERSION=08a
- COMPOSE_TYPE=with-postgres
volumes:

View file

@ -13,7 +13,7 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=${TIMEZONE}
- COMPOSE_VERSION=02d
- COMPOSE_VERSION=08a
- COMPOSE_TYPE=no-postgres
volumes:
- sqlite_volume:/var/lib/routerfleet_sqlite/

View file

@ -2,7 +2,7 @@ services:
routerfleet-postgres:
container_name: routerfleet-postgres
restart: unless-stopped
image: postgres:latest
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
@ -25,7 +25,7 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=${TIMEZONE}
- COMPOSE_VERSION=02d
- COMPOSE_VERSION=08a
- COMPOSE_TYPE=with-postgres
volumes:
- sqlite_volume:/var/lib/routerfleet_sqlite/

View file

@ -3,7 +3,7 @@ PRODUCTION_SETTINGS_FILE="/app/routerfleet/production_settings.py"
set -e
if [[ "$COMPOSE_VERSION" != "02d" ]]; then
if [[ "$COMPOSE_VERSION" != "08a" ]]; then
echo "ERROR: Please upgrade your docker compose file. Exiting."
exit 1
fi