F
F
ffuahnotna2021-12-18 12:49:48
PostgreSQL
ffuahnotna, 2021-12-18 12:49:48

Where is the error in the config file or what am I doing wrong?

Hello everyone
The situation is as follows: I need to raise two databases for two different applications. Here is a piece of .yml where I raise the bases:

services:
   db1:
       image: some_image
       volumes:
         - ./configs/postgresql_1.conf:/etc/postgresql/postgresql_1.conf
       command:  postgres -c config_file=/etc/postgresql/postgresql_1.conf
   db2:
       image: some_image
       volumes:
         - ./configs/postgresql_2.conf:/etc/postgresql/postgresql_2.conf
       command:  postgres -c config_file=/etc/postgresql/postgresql_2.conf

There are two lines in the configuration files:
postgresql_1.conf:
listen_adress = “localhost”
port = 15432

postgresql_2.conf:
listen_adress = “localhost”
port = 5432

When I try to raise any of the databases with the docker-compose up db1 command, I see the following error:

LOG : input in flex scanner failed at file "/etc/postgresql/postgresql_1.conf" line 1
FATAL: configuration file "/etc/postgresql/postgresql_1.conf" contains errors


Please tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-12-18
@ky0

address is written with two D's.
https://www.postgresql.org/docs/current/runtime-co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question