---
kind: DeploymentConfig
apiVersion: v1
metadata:
  name: postgrest
  labels:
    app: postgrest
spec:
  strategy:
    resources: {}
  replicas: 1
  test: false
  selector:
    name: postgrest
  template:
    metadata:
      labels:
        name: postgrest
        app: postgrest
        service: postgrest
      name: postgrest
    spec:
      containers:
      - name: postgrest
        image: registry.hub.docker.com/postgrest/postgrest:latest
        ports:
        - containerPort: 3000
        env:
        - name: "PGRST_DB_URI"
          value: "postgresql://datanommer_ro:{{ datanommer_ro_password }}@db-datanommer02.iad2.fedoraproject.org/datanommer"
        - name: "PGRST_DB_ANON_ROLE"
          value: "datanommer_ro"
        - name: "PGRST_MAX_ROWS"
          value: "25"
        - name: "PGRST_OPENAPI_SERVER_PROXY_URI"
          value: "https://postgrest-monitor-dashboard.app.os.fedoraproject.org/"
  triggers:
  - type: ConfigChange
