version: "3.8" services: relay: build: context: ../../ dockerfile: ./examples/basic/Dockerfile environment: PORT: 7447 POSTGRESQL_DATABASE: postgres://nostr:nostr@postgres:5432/nostr?sslmode=disable depends_on: postgres: condition: service_healthy ports: - 2700:7447 command: "./examples/basic/relayer-basic" postgres: image: postgres restart: always environment: POSTGRES_DB: nostr POSTGRES_USER: nostr POSTGRES_PASSWORD: nostr POSTGRES_HOST_AUTH_METHOD: trust # allow all connections without a password. This is *not* recommended for prod ports: - 5432:5432 healthcheck: test: ["CMD-SHELL", "pg_isready -U nostr"] # database username here - nostr, should be changed if other user interval: 10s timeout: 5s retries: 5 pgadmin: container_name: pgadmin image: dpage/pgadmin4 restart: unless-stopped depends_on: - postgres ports: - "5050:80" environment: PGADMIN_DEFAULT_EMAIL: nostr@nostr.nostr PGADMIN_DEFAULT_PASSWORD: nostr volumes: - pgadmin:/var/lib/pgadmin volumes: pgadmin: