Upgrade Postgres for Oxitraffic

This commit is contained in:
Mo 2023-09-21 01:10:33 +02:00
parent 53a8dd145f
commit d7e35d2dd1
2 changed files with 4 additions and 6 deletions

View file

@ -6,18 +6,17 @@ set -l container_volumes_dir ~/volumes/$container_name
buildah build -t $container_name:latest ~/code/oxitraffic buildah build -t $container_name:latest ~/code/oxitraffic
set -l db_container_name oxitraffic-db set -l db_container_name oxitraffic-db
set -l db_container_volumes_dir $container_volumes_dir/db
set -l db_env_file $container_volumes_dir/.postgres.env set -l db_env_file $container_volumes_dir/.postgres.env
podman-default-create \ podman-default-create \
$db_container_name \ $db_container_name \
--network traefik \ --network traefik \
-v $db_container_volumes_dir:/var/lib/postgresql/data:Z \ -v $container_volumes_dir/db:/var/lib/postgresql/data:Z \
-e TZ=Europe/Berlin \ -e TZ=Europe/Berlin \
-e PGTZ=Europe/Berlin \ -e PGTZ=Europe/Berlin \
--env-file $db_env_file \ --env-file $db_env_file \
--label "io.containers.autoupdate=registry" \ --label "io.containers.autoupdate=registry" \
docker.io/library/postgres:15-alpine docker.io/library/postgres:16-alpine
podman-default-create \ podman-default-create \
$container_name \ $container_name \

View file

@ -6,18 +6,17 @@ set -l container_volumes_dir ~/volumes/$container_name
buildah build -t $container_name:latest ~/code/oxitraffic buildah build -t $container_name:latest ~/code/oxitraffic
set -l db_container_name oxitraffic-corrode-dev-db set -l db_container_name oxitraffic-corrode-dev-db
set -l db_container_volumes_dir $container_volumes_dir/db
set -l db_env_file $container_volumes_dir/.postgres.env set -l db_env_file $container_volumes_dir/.postgres.env
podman-default-create \ podman-default-create \
$db_container_name \ $db_container_name \
--network traefik \ --network traefik \
-v $db_container_volumes_dir:/var/lib/postgresql/data:Z \ -v $container_volumes_dir/db:/var/lib/postgresql/data:Z \
-e TZ=Europe/Berlin \ -e TZ=Europe/Berlin \
-e PGTZ=Europe/Berlin \ -e PGTZ=Europe/Berlin \
--env-file $db_env_file \ --env-file $db_env_file \
--label "io.containers.autoupdate=registry" \ --label "io.containers.autoupdate=registry" \
docker.io/library/postgres:15-alpine docker.io/library/postgres:16-alpine
podman-default-create \ podman-default-create \
$container_name \ $container_name \