Deploy with docker-compose issue

Hello everyone,
I am trying to deploy the project Laravel to Render using docker-compose. But it seems that docker-compose is not supported on this platform. I have to use render.yaml instead, but I don’t know how to convert from docker-compose.yml to render.yaml? I need everyone’s help. Below is the file docker-compose.yml.
Thanks.
Khoa

version: "3.7"
services:
  app:
    build:
      args:
        user: sammy
        uid: 1000
      context: ./
      dockerfile: Dockerfile
    image: thericebowl
    container_name: thericebowl-app
    restart: unless-stopped
    working_dir: /var/www/
    volumes:
      - ./:/var/www
    networks:
      - thericebowl
  db:
    image: postgres:latest
    container_name: thericebowl-db
    restart: unless-stopped
    environment:
      POSTGRES_DATABASE: ${DB_DATABASE}
      POSTGRES_ROOT_PASSWORD: ${DB_PASSWORD}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_HOST: ${DB_HOST}
      SERVICE_TAGS: dev
      SERVICE_NAME: postgres
    volumes:
      - ./docker-compose/mysql:/docker-entrypoint-initdb.d
    networks:
      - thericebowl
  nginx:
    image: nginx:alpine
    container_name: thericebowl-nginx
    restart: unless-stopped
    ports:
      - 8000:80
    volumes:
      - ./:/var/www
      - ./docker-compose/nginx:/etc/nginx/conf.d/
    networks:
      - thericebowl

networks:
  thericebowl:
    driver: bridge

Hi there,

Thanks for reaching out.

There isn’t a feature to convert docker-compose files to render.yaml, although there is a feature request on our feedback site for something like that if you wanted to upvote it: https://feedback.render.com/features/p/docker-compose-to-render-yaml (and another to support docker-compose itself: https://render.canny.io/features/p/support-docker-compose)

We have an example for deploying a Laravel project to Render here: https://render.com/docs/deploy-php-laravel-docker, which doesn’t use a Blueprint/render.yaml, which may be worth a look.

Have you tried creating a Blueprint? Are you running up against any particular issue?

Alan

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