add docker deployment documentation

This commit is contained in:
Amruth Pillai
2020-03-31 16:00:36 +05:30
parent 948cdca32a
commit 6f3e69e01c
4 changed files with 31 additions and 1 deletions

View File

@ -4,6 +4,7 @@
![Build & Deploy](https://github.com/AmruthPillai/Reactive-Resume/workflows/Build%20&%20Deploy/badge.svg) ![Build & Deploy](https://github.com/AmruthPillai/Reactive-Resume/workflows/Build%20&%20Deploy/badge.svg)
![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb) ![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)
![Docker Pulls](https://img.shields.io/docker/pulls/amruthpillai/reactive-resume)
![Localization](https://badges.crowdin.net/reactive-resume/localized.svg) ![Localization](https://badges.crowdin.net/reactive-resume/localized.svg)
![GitHub](https://img.shields.io/github/license/AmruthPillai/Reactive-Resume) ![GitHub](https://img.shields.io/github/license/AmruthPillai/Reactive-Resume)

View File

@ -10,6 +10,7 @@ title: Home
![Build & Deploy](https://github.com/AmruthPillai/Reactive-Resume/workflows/Build%20&%20Deploy/badge.svg) ![Build & Deploy](https://github.com/AmruthPillai/Reactive-Resume/workflows/Build%20&%20Deploy/badge.svg)
![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb) ![Code Style](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)
![Docker Pulls](https://img.shields.io/docker/pulls/amruthpillai/reactive-resume)
![Localization](https://badges.crowdin.net/reactive-resume/localized.svg) ![Localization](https://badges.crowdin.net/reactive-resume/localized.svg)
![GitHub](https://img.shields.io/github/license/AmruthPillai/Reactive-Resume) ![GitHub](https://img.shields.io/github/license/AmruthPillai/Reactive-Resume)

View File

@ -6,6 +6,32 @@ title: Deployment
You've built the source code successfully and now you're on your way to deploying the app. There are some methods setup to deploy a version of the app without even having to build the source, so we'll run through all the steps here: You've built the source code successfully and now you're on your way to deploying the app. There are some methods setup to deploy a version of the app without even having to build the source, so we'll run through all the steps here:
## Docker
If you are a fan of Docker as I am, you'd be happy to know that the app can be set up and running within seconds thanks to having set up both environments of Docker.
If you would like to run the **development server** through Docker, which also supports hot-reloads, just run:
```
npm run docker:dev
OR
docker-compose -f docker-compose-dev.yml up -d --build
```
If you would like to run the **production version of the app**, powered by NGINX, just run:
```
npm run docker
OR
docker-compose up -d --build
```
You can also alternatively pull the image from [Docker Hub](https://hub.docker.com/r/amruthpillai/reactive-resume) where the latest image is always built from source control.
```
docker pull amruthpillai/reactive-resume
```
## Deploying to Heroku ## Deploying to Heroku
Heroku is a cloud platform that lets companies build, deliver, monitor and scale apps — we're the fastest way to go from idea to URL, bypassing all those infrastructure headaches. Heroku is a cloud platform that lets companies build, deliver, monitor and scale apps — we're the fastest way to go from idea to URL, bypassing all those infrastructure headaches.

View File

@ -43,7 +43,9 @@
"predeploy:app": "npm run build", "predeploy:app": "npm run build",
"deploy:app": "firebase deploy --only hosting:app", "deploy:app": "firebase deploy --only hosting:app",
"predeploy:docs": "npm run docs:build", "predeploy:docs": "npm run docs:build",
"deploy:docs": "firebase deploy --only hosting:docs" "deploy:docs": "firebase deploy --only hosting:docs",
"docker:dev": "docker-compose -f docker-compose-dev.yml up -d --build",
"docker": "docker-compose up -d --build"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "react-app" "extends": "react-app"