version: '3.1'

services:
  postgres:
    image: postgres
    environment:
      POSTGRES_USER: apicurio-registry
      POSTGRES_PASSWORD: password
    cap_drop:
      - NET_RAW
  app:
    image: apicurio/apicurio-registry-sql:2.6.x-release
    ports:
      - 8080:8080
    environment:
      REGISTRY_DATASOURCE_URL: jdbc:postgresql://postgres/apicurio-registry
      REGISTRY_DATASOURCE_USERNAME: apicurio-registry
      REGISTRY_DATASOURCE_PASSWORD: password
    depends_on:
      - postgres
    cap_drop:
      - NET_RAW
