Create React App, Redux, NodeJS, NGINX, and Let's Encrypt Boilerplate with Docker Compose
Report Bug
·
Request Feature
- NodeJS version >= 12.18.2
- Docker version >= 19.03.08
- Clone the repo
git clone https://github.com/feux07/cra-redux-node-nginx-lets-encrypt-with-docker-compose.git
- Rename folder name with your project name
mv cra-redux-node-nginx-lets-encrypt-with-docker-compose your-project-name
- Go to the project directory
cd your-project-name
- Remove .git folder
rm -rf .git
- Generate React app
npx create-react-app client --template redux
- Rename .env-sample with .env
mv .env-sample .env
- Edit .env file with your parameters
NODE_ENV=production
INLINE_RUNTIME_CHUNK=false
WEB_APP=WEB
VIRTUAL_HOST=sample.website.com
VIRTUAL_NETWORK=nginx-proxy
VIRTUAL_PORT=8080
LETSENCRYPT_HOST=sample.website.com
LETSENCRYPT_EMAIL=sample@website.com
VOLUME_PATH=./volumes
- Run with Docker Compose
docker-compose up -d
Distributed under the MIT License. See LICENSE
for more information.