How to host a dockerized Laravel website on Heroku? - laravel

I have a dockerized Laravel application that consists of MySQL database and Redis.
I want to deploy and test it on the internet.
is there any way to have an environment such as Heroku to deploy it?

Related

Ideal place to deploy a springboot web backend and a nextjs frontend

I just wanted to know, if someone could suggest me some sites, where i can deploy my springboot backend connected to a mysql database. My frontend is build with nextjs/react.
You can try Render or Heroku if you don't want to operate a whole Kubernetes cluster.

Is it possible deploying Laravel Sail developed project to Apache server?

I’m not too familiar with the server technologies. So my question is is it ok to deploy a project developed under Laravel Sail environment (which uses Nginx as default web server i guess) to a server which runs Apache? Will it work? Should i expect any problems?
Laravel Sail is not for production. It also doesn't use apache or nginx, but php's build in web server (php artisan serve). So please use your own, or have a look at my config.
I have modified the docker file to work with Sail and Apache for development purpose. You can take a look on Gitlab link here to have some idea for your production environment.

React frontend on netlify can't connect to database

I have deployed the Node, Express backend API part of my MERN app to Heroku and my MongoDB is running on MongoDB Atlas.
The React frontend when run on localhost connects to the backend on Heroku fine and can retrieve/edit data from MongoDB Atlas.
But when I tried to deploy the same React frontend app on Netlify, the React app works but it can't retrieve data from the database.
I think it is probably because of the IP restrictions on Atlas. You have to allow any IP to connect to your database.

Is it possible to deploy more then one Strapi.io app on the same Heroku dyno?

I read more tutorials about deploy Strapi to Heroku and all of them talks about deployng your Strapi app to Heroku. But in addition I would like to understand if it is possible to deploy for example 2 different Strapi applications, to the same Heroku dyno and if it has any disadvantage or not.
Yes, it's possible.
You need to use Nginx Virtual Host as defined in Strapi Nginx Proxying documentation.
It's mentioned in Amazon AWS part of the documentation.
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-18-04

How can I setup and deploy a database with Deis (PaaS)

I'm trying to setup a database with Deis. I know this is possible, but there doesn't seem to be any documentation about how to do it other than setting an ENV variable.How could I setup say a MongoDB or Cassandra docker container and then deploy that and have my deis app use it?
If you're trying to deploy now, a possible solution is to set up a docker container, have it publicly route-able, and then configure your application to use that container through an environment variable following Heroku's 12 factor app best practices. There is a feature request for a Deis service gateway that will act like Heroku's Add-on Marketplace, but it's not there yet.

Resources