title: Creating a Minio(S3) container inside a github actions yml file
body: <p>I am trying to create an Minio/S3 container so I can run my test suite as an action on github. I currently have the following:</p>
  <pre><code>name: Run Tests
  on:
    push:
      branches: [ master ]
    pull_request:
      branches: [ master ]
  
  jobs:
    build:
  
      runs-on: ubuntu-18.04
  
      services:
        postgres:
          ...
  
        minio:
          image: minio/minio
          volumes:
            - /data
          ports:
            - 9000:9000
          env:
            MINIO_ACCESS_KEY: minio
            MINIO_SECRET_KEY: minio123
          options: --entrypoint &quot;minio server /data&quot; --health-cmd &quot;curl -f http://localhost:9000/minio/health/live&quot; --health-interval 10s --health-timeout 5s --health-retries 5
  
      steps:
        ...
  </code></pre>
  <p>I have tried the following permutations to get the minio container to work but with no success:</p>
  <pre><code>volumes:
    - ./data:/data
  
  volumes:
    - ./:/data
  
  volumes:
    - .:/data
  
  volumes:
    - /data:/data
  </code></pre>
  <p>And I even tried:</p>
  <pre><code>options: --entrypoint &quot;mkdir /data; minio server /data&quot; ...
  
  options: --entrypoint &quot;minio server /tmp&quot; ...
  
  options: --entrypoint [&quot;minio server&quot;, &quot;/tmp&quot;] ...
  </code></pre>
  <p>And I have tried using the <code>-v</code> flag to mount volumes before the <code>--entrypoint</code> flag.</p>
  <pre><code>options: -v /s3_data:/data --entrypoint &quot;minio server /data&quot; ...
  
  options: -v ${{ github.workspace }}/s3_data:/data --entrypoint &quot;minio server /data&quot; ...
  
  options: -v ${{ github.workspace }}/s3_data:/data:rw --entrypoint &quot;minio server /data&quot; ...
  </code></pre>
  <p>In an attempt to get it to work. But unfortunately I get:</p>
  <pre><code>starting container process caused: exec: &quot;minio server /data&quot;: stat minio server /data: no such file or directory: unknown
  </code></pre>
  <p>And I can't run the <code>minio server</code> without any argument :(</p>