back:
container_name: hatka-bo-back
build:
context: .
dockerfile: Dockerfile
environment:
- "SPRING_PROFILES_ACTIVE=prod"
ports:
- 0.0.0.0:8080:8080
- 0.0.0.0:9090:9090
volumes:
- ./upload:/upload
db:
container_name: hatka-bo-db
image: postgres
restart: always
ports:
- 127.0.0.1:5432:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USERNAME=postgres # fixme
- POSTGRES_PASSWORD=postgres # fixme
получаю ошибку которую не могу никак решить
Unable to obtain connection from database (jdbc:postgresql://localhost:5432/postgres?user=postgres&password=postgres) for user 'null': Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
> ports: - 0.0.0.0:8080:8080 - 0.0.0.0:9090:9090 > ports: - 127.0.0.1:5432:5432
Обсуждают сегодня