services:
  pgweb:
    container_name: pgweb
    image: sosedoff/pgweb:latest
    #build: .
    #environment:
    #  PGWEB_DATABASE_URL: postgres://pgweb:pgweb@pgweb-postgres:5432/pgweb?sslmode=disable
    ports:
      - 58081:8081
    networks:
      - pgweb
    #depends_on:
    #  postgres:
    #    condition: service_healthy
    healthcheck:
      test: ["CMD", "nc", "-vz", "127.0.0.1", "58081"]
      interval: 5s
    volumes:
      - /gurulandia/data/pgweb:/home/pgweb/.pgweb/bookmarks
networks:
  pgweb:
    name: pgweb