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