From a8b4c0b05cb6bcf8ee06a714262ede4808a53d98 Mon Sep 17 00:00:00 2001 From: Leopere <1068374+Leopere@users.noreply.github.com> Date: Wed, 1 Feb 2023 17:32:02 -0500 Subject: [PATCH 1/2] Modernization and added ref to Stash pHash compat img. - removed redundant `container_name:` - removed deprecated `link:` - added image: stashapp/postgres:latest to postgres image. --- docker/production/docker-compose.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docker/production/docker-compose.yml b/docker/production/docker-compose.yml index 900aed8b9..abafa5684 100644 --- a/docker/production/docker-compose.yml +++ b/docker/production/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: postgres: - container_name: postgres + image: stashapp/postgres:latest build: ./postgres restart: always environment: @@ -13,7 +13,6 @@ services: - /pgdata:/var/lib/postgresql/data stash-box: - container_name: stash-box image: stashapp/stash-box:development restart: always logging: @@ -21,8 +20,6 @@ services: options: max-file: "10" max-size: "2m" - links: - - postgres volumes: - :/root/.stash-box labels: @@ -32,7 +29,6 @@ services: - traefik.port=9998 traefik: - container_name: traefik image: traefik:2.3 restart: always ports: From d59a31e5db0639bb47c6a248a66bb6d81f36d46c Mon Sep 17 00:00:00 2001 From: Leopere <1068374+Leopere@users.noreply.github.com> Date: Wed, 1 Feb 2023 17:41:19 -0500 Subject: [PATCH 2/2] Following documentation on disabling sha crypto Adding an envvar that's supported by the upstream postgres:14.2 container to disable the sha crypto as per the README.md recommendation. Inevitably prior to a public release this is probably smart to disable as the additional crypto can't hurt to have enabled by default. --- docker/production/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/production/docker-compose.yml b/docker/production/docker-compose.yml index abafa5684..877656b14 100644 --- a/docker/production/docker-compose.yml +++ b/docker/production/docker-compose.yml @@ -9,6 +9,7 @@ services: POSTGRES_USER: POSTGRES_PASSWORD: POSTGRES_DB: + POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256 --auth-local=scram-sha-256" volumes: - /pgdata:/var/lib/postgresql/data