Fixed broken db with postgres:11.7
This commit is contained in:
parent
22c0285680
commit
4b2b250047
|
@ -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:
|
||||||
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:
|
||||||
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
|
||||||
|
|
2
dev.yml
2
dev.yml
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue