maven fail in spring project build trying to establish connection with database
问题 i make a docker-compose and dockerfile for my spring project, but it fail on maven build stage becouse is trying to establish a connection with the postgres service, I have no idea how I could solve it. this is my docker-compose file: version: '3' services: postgres: build: context: . dockerfile: docker/postgres/Dockerfile restart: always environment: POSTGRES_DB: ${postgres_database} POSTGRES_USER: ${postgres_username} POSTGRES_PASSWORD: ${postgres_password} ports: - '5432:5432' volumes: - .