AdamSulek / timelogs

0 stars 1 forks source link

[task] Connection with the postgresql database #11

Open AdamSulek opened 3 years ago

AdamSulek commented 3 years ago
AdamSulek commented 3 years ago

connection with local machine

postgres container is running on 5432 port by default choose your local (or VM) port for example 3030 and map it to container port 5432 with directive:

ports:

to use connect with another service expose port 5432 with:

expose:

set also hostname and another environment variable: POSTGRES_USER: POSTGRES_DB: POSTGRES_PASSWORD: