2

I've just tried to install the docker version of onlyOffice an my Mageia9 server. The postgresql database seems correct :

/var/lib/pgsql # psql -h localhost -U onlyoffice -d onlyoffice Password for user onlyoffice : psql (13.21) Enter "help" for help. onlyoffice=> \l List of databases Name | Owner | Encoding | Collation | Type charact.| Permissions ------------+--------------+----------+-----------------+--------------+--------------------------- onlyoffice | onlyoffice | UTF8 | C | C | =Tc/onlyoffice + | | | | | onlyoffice=CTc/onlyoffice pgadmin | postgres | UTF8 | C | C | postgres | postgres | UTF8 | C | C | template0 | postgres | UTF8 | C | C | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | C | C | =c/postgres + | | | | | postgres=CTc/postgres ttrss | postgres | UTF8 | C | C | =Tc/postgres + | | | | | postgres=CTc/postgres + | | | | | ttrss_admin=CTc/postgres (6 lignes) onlyoffice=> 

when I run :

\# docker compose up

I get :

onlyoffice-postgresql | 2025-08-16 15:05:48.729 UTC [134] FATAL: password authentication failed for user "onlyoffice" onlyoffice-postgresql | 2025-08-16 15:05:48.729 UTC [134] DETAIL: Password does not match for user "onlyoffice". onlyoffice-postgresql | Connection matched pg_hba.conf line 96: "host all all all md5" 

My pg_hba.conf file (comments are removed) :

# TYPE DATABASE USER ADDRESS METHOD local all all md5 # IPv4 local connections: host all all 0.0.0.0/0 md5 # IPv6 local connections: host all all ::1/128 md5 # Allow replication connections from localhost, by a user with the replication privilege. local replication all md5 host replication all 127.0.0.1/32 md5 host replication all ::1/128 md5 

Here is my docker-compose.yml file :

onlyoffice-documentserver: build:context: . image: onlyoffice/documentserver #[-de,-ee] container_name: onlyoffice-documentserver depends_on: - onlyoffice-postgresql - onlyoffice-rabbitmq environment: - DB_TYPE=postgres - DB_HOST=onlyoffice-postgresql - DB_PORT=5432 - DB_NAME=onlyoffice - DB_USER=onlyoffice - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq # Uncomment strings below to enable the JSON Web Token validation. - JWT_ENABLED=true - JWT_SECRET=myJWTPasswd - JWT_HEADER=Authorization - JWT_IN_BODY=true ports: - '4080:80' - '4443:443' ... onlyoffice-postgresql: container_name: onlyoffice-postgresql image: postgres:15 environment: - POSTGRES_DB=onlyoffice - POSTGRES_USER=onlyoffice - POSTGRES_HOST_AUTH_METHOD=md5 - POSTGRES_INITDB_ARGS='--auth=md5' - POSTGRES_PASSWORD="myPostgresqlPassword" ... 

Could you help me to solve this issue ?

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.