cant connect to postgres db - docker swarm
问题 I have difficulties to connect to my postgresql via IntelliJ. I am using this docker-compose file: version: '3' services: db: image: postgres environment: POSTGRES_DB: postgres POSTGRES_USER: postgres_user POSTGRES_PASSWORD: postgres_password PG_DATA: /var/lib/postgresql/data/pgdatai expose: - "5432" ports: - "5432" volumes: - /var/lib/postresql/db/ deploy: placement: constraints: - node.hostname == vmAPT1 I put this inside by command: docker stack deploy --compose-file docker-compose.yml