Docker-compose up -d send disconnect: Broken pipe

If I repeatedly (about 15 times) run docker-compose up -d , the connection with the server is cut off. My docker-compose.yml file contains:

services:

  postgresql:
    container_name: postgresql
    image: bitnami/postgresql:11.11.0
    deploy:
      resources:
        limits:
          memory: 1024M
        reservations:
          memory: 512M
    restart: always
    environment:
      - POSTGRESQL_PASSWORD=Passw0rd123
    ports:
      - 5432:5432
    volumes:
      - ./postgres/dumps:/backups
      - ./postgres/dump-restore:/scripts
      - data-postgresql:/bitnami/postgresql
volumes:
  data-postgresql:
    driver: local      

When I run docker-compose up -d it prints out

Creating network "postgres_default" with the default driver
client_loop: send disconnect: Broken pipe

Reboot the server did not help. The server pings, and other containers are running on it, but I cannot access it via ssh. I think Docker made changes to iptables and now I can’t connect to the server.