Verified Commit 4b2b2500 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken db with postgres:11.7

parent 22c02856
Pipeline #9639 passed with stages
in 5 minutes and 13 seconds
...@@ -131,6 +131,7 @@ test_api: ...@@ -131,6 +131,7 @@ test_api:
DATABASE_URL: "postgresql://postgres@postgres/postgres" DATABASE_URL: "postgresql://postgres@postgres/postgres"
FUNKWHALE_URL: "https://funkwhale.ci" FUNKWHALE_URL: "https://funkwhale.ci"
DJANGO_SETTINGS_MODULE: config.settings.local DJANGO_SETTINGS_MODULE: config.settings.local
POSTGRES_HOST_AUTH_METHOD: trust
only: only:
- branches - branches
before_script: before_script:
......
...@@ -56,3 +56,12 @@ from the server CLI. Typical use cases include: ...@@ -56,3 +56,12 @@ from the server CLI. Typical use cases include:
All user-related commands are available under the ``python manage.py fw users`` namespace. All user-related commands are available under the ``python manage.py fw users`` namespace.
Please refer to the `Admin documentation <https://docs.funkwhale.audio/admin/commands.html#user-management>`_ for Please refer to the `Admin documentation <https://docs.funkwhale.audio/admin/commands.html#user-management>`_ for
more information and instructions. more information and instructions.
Postgres docker changed environment variable [manual action required, docker only]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you're running with docker and our multi-container setup, there was a breaking change starting in the 11.7 postgres image (https://github.com/docker-library/postgres/pull/658)
You need to add this to your .env file: ``POSTGRES_HOST_AUTH_METHOD=trust``
Newer deployments aren't affected.
...@@ -6,6 +6,8 @@ services: ...@@ -6,6 +6,8 @@ services:
networks: networks:
- default - default
env_file: .env env_file: .env
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
image: postgres:11 image: postgres:11
volumes: volumes:
- ./data/postgres:/var/lib/postgresql/data - ./data/postgres:/var/lib/postgresql/data
......
...@@ -23,6 +23,8 @@ services: ...@@ -23,6 +23,8 @@ services:
- .env.dev - .env.dev
- .env - .env
image: postgres:${POSTGRES_VERSION-11} image: postgres:${POSTGRES_VERSION-11}
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
command: postgres ${POSTGRES_ARGS-} command: postgres ${POSTGRES_ARGS-}
volumes: volumes:
- "./data/${COMPOSE_PROJECT_NAME-node1}/postgres:/var/lib/postgresql/data" - "./data/${COMPOSE_PROJECT_NAME-node1}/postgres:/var/lib/postgresql/data"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment