I am planning to create a docker configuration, it will be implemented in an empty VPS.
The idea is to cover all process, including generating SSL certificate using letsencrypt, until serving the MERN application.
What is the best practice for this?
Do we need to create 1 docker compose file, it will cover all process?
Or we need to split the process into 2, one for generating the SSL certificate and the other for serving the application?
Or is there a better way?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there @budiantoip,
I believe that it would be more convenient for you to have 1 Docker Compose Yaml file which would do all of the set up for you.
That way if you need to move your application to another Droplet, you will be able to only run that 1 docker-compose up command and your environment would be up and running.
Regards, Bobby
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.