Issue connecting my container to Minio

Hey, trying to deploy multiple containers using Render button, getting this error:

A render.yaml file was found, but there was an issue.

services:
  - type: pserv
    name: assistants
    env: docker
    dockerCommand: "/bin/bash -c 'curl -L https://raw.githubusercontent.com/stellar-amenities/assistants/main/assistants-core/src/migrations.sql -o migrations.sql && psql -U postgres -d mydatabase -f migrations.sql && /app/entrypoint.sh'"
    image: 
      url: stellar-amenities/assistants/assistants:latest
    envVars:
      - key: ANTHROPIC_API_KEY
        sync: false
      - key: DATABASE_URL
        fromDatabase:
          name: pg
          property: connectionString
      - key: REDIS_URL
        fromService:
          name: redis
          type: pserv
          property: connectionString
    - key: S3_ENDPOINT
      fromService:
        name: minio
        type: web
        property: host
      - key: S3_ACCESS_KEY
        value: "minioadmin"
      - key: S3_SECRET_KEY
        value: "minioadmin"
      - key: S3_BUCKET_NAME
        value: "mybucket"

  - type: redis
    name: lightning
    ipAllowList: # required
      - source: 0.0.0.0/0
        description: everywhere
    plan: free
    maxmemoryPolicy: noeviction # optional (defaults to allkeys-lru)

  - type: web
    name: minio
    runtime: image
    image:
      url: docker.io/minio/minio:RELEASE.2023-08-04T17-40-21Z.hotfix.04968f7ec
    dockerCommand: minio server /data
    autoDeploy: false
    disk:
      name: data
      mountPath: /data
    envVars:
      - key: MINIO_ACCESS_KEY
        value: "minioadmin"
      - key: MINIO_SECRET_KEY
        value: "minioadmin"
      - key: MINIO_BROWSER
        value: "off"
databases:
  - name: pg
    plan: free
    databaseName: mydatabase
    user: valid_user_name

Code:

Tried different values for the property:

      - key: S3_ENDPOINT
        fromService:
          name: minio
          type: web
          property: host

But all errored

My workaround is to use k8s (much easier than using render for me)

Would love to have a one click button for my users though, any help appreciated

bump

Hi there,

You are mixing image runtimes and docker runtimes on the same service. If you use:

image:  url: stellar-amenities/assistants/assistants:latest

The env (now called runtime) needs to be image not docker: https://render.com/docs/blueprint-spec#runtime. Sorry, we should surface this error better; the message A render.yaml file was found, but there was an issue. is not very helpful.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.