Can anyone help me convert this docker-compose.yaml file to render.yaml

I have a repo which has a React frontend and Django(DRF) backend. I want to deploy it on render as a web service, but since render.com do not support docker-compose.yaml directly, I will have to convert it to render.yaml. I am having problems with converting all things such as volumes, port exposing and nginx config’s etc.
Here’s the docker-compose file I want to convert -

version: '1'

services:
    nginx: 
        restart: unless-stopped
        build:
            context: .
            dockerfile: ./docker/nginx/Dockerfile
        ports:
            - 80:80
        volumes:
            - static_volume:/app/backend/Quiz/django_static
            - ./docker/nginx/development:/etc/nginx/conf.d
        depends_on: 
            - backend
    backend:
        restart: unless-stopped
        build:
            context: .
            dockerfile: ./docker/backend/Dockerfile
            
        entrypoint: /app/docker/backend/wsgi-entrypoint.sh
        volumes:
            - .:/app
            - static_volume:/app/backend/Quiz/django_static
        expose:
            - 8000        

volumes:
    static_volume: {}

Here’s my progress so far -

services:
  - type: web
    name: nginx
    env: docker
    region: singapore
    rootDir: Quiz
    dockerfilePath: ./docker/nginx/Dockerfile
    envVars:
      - key: PORT
        value: 80

  - type: web
    name: backend
    env: docker
    region: singapore
    rootDir: Quiz
    dockerfilePath: ./docker/backend/Dockerfile
    envVars:
      - key: PORT
        value: 8000

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