Skip to content

sholua/docker-react-express-mongo-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi container application

Make sure that docker and docker-compose are installed on your computer

Development flow

Run frontend and backend servers in containers with command:

docker-compose up -d

Run app in containers and rebuild images:

docker-compose up -d --build

Request in development

frontend http://localhost:3000 backend http://localhost:3000/api/

Production flow

docker-compose -f docker-compose.yml up -d --build

This project needs a file .env with environment variables which has to be excluded from source control:

MONGO_USERNAME=dbUserName
MONGO_PASSWORD=you_password
MONGO_PORT=27017
MONGO_DB=dbName

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages