Skip to content

SiliconValleyInternship-Lambda/Docker_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-demo

A docker compose example that provides a Nginx, Flask, and React container

How to use a docker and composer


Docker Prerequisites:

Refer to

git clone [email protected]:shpark76/docker-demo.git

1. git clone

git clone [email protected]:SiliconValleyInternship-Lambda/Docker_1.git

2. docker compose build and up

$ docker compose build

Let’s run the API using docker

Let’s build the docker image

docker compose build

Docker compose up with all associated docker compose services

$ docker compose up

Note:

If you prefer to use a daemon mode, Let’s run the above command in the background:

$ docker compose up -d

3. Flask Python application

http://localhost:5000

4. React application

...
http://localhost:3000

5. Nginx application

Frontend

...
http://localhost:80

Backend

...
http://localhost:8000

If you want to build/run a specific application

docker compose build <custom service>
docker compose run <custom service>

i.e. 
docker compose build nodejs_app
docker compose run nodejs_app

About

Docker (nginx, flask, gunicorn, react) without MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published