Open AdamSulek opened 3 years ago
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: