Can someone please help me translate docker-compose to render.yaml?

Can someone please help translate the following docker-compose to render?


version: ‘3’
services:
db:
image: mariadb:10.5.8
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_USER: test
MYSQL_PASSWORD: testing123
MYSQL_DATABASE: first_db
volumes:
- my_db_data:/var/lib/mysql
ports:
- “3306:3306”
app:
depends_on:
- db
build: .
environment:
DATABASE_URL: “mysql://test:testing123t@db:3306/first_db”
DATABASE_URL_TESTING: “mysql://test:testing123t@db:3306/first_db_testing”
APP_URL: http://localhost:8000
ports:
- ‘8000:3000’

volumes:
my_db_data:

Hi,

That docker-compose just seems to setup a MariaDB instance.

We don’t have an example for MariaDB, but we have a guide for MySQL, which may be worth reviewing to get an idea of how to put your own one together. Guide / Repo

Alan

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