A docker compose example that provides a Nginx, Flask, and React container
- Windows https://docs.docker.com/docker-for-windows/install/
- Mac https://docs.docker.com/docker-for-mac/install/
Refer to
git clone [email protected]:shpark76/docker-demo.git
git clone [email protected]:SiliconValleyInternship-Lambda/Docker_1.git
$ docker compose build
docker compose build
$ docker compose up
If you prefer to use a daemon mode, Let’s run the above command in the background:
$ docker compose up -d
http://localhost:5000
...
http://localhost:3000
Frontend
...
http://localhost:80
Backend
...
http://localhost:8000
docker compose build <custom service> docker compose run <custom service> i.e. docker compose build nodejs_app docker compose run nodejs_app