简体   繁体   中英

How to run on a single server with backend docker written in two different languages (Flask, Node.js)

I don't know much about devops. But I need some devops knowledge in a new project. The project will briefly include a Flask backend with Python for machine learning. There will be a Node.js backend for other api services and voice chat. Can you give me some information about how I can run these two different backends with docker on a server? Or can you suggest resources where I can learn?

You need to setup docker containers for each service, then use docker-compose to orchestrate them. Finally use a web server like nginx with its nginx upstream module to put them under the same hostname, with the appropriate url configurations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM