Skip to content

denisinla/hello-docker-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-docker-react

The easiest way to create a React app with server-side rendering thanks to Next.js.

Features: create-next-app, Docker and Yarn.

Running on Linux? Optional step for allowing linux non-root users to run docker commands:

$ sudo usermod -aG docker $USER

Build and start your React environment with single command:

Just run:

docker-compose up

And wait until the console returns a ready on https://localhost:3000

Test your install:

Extras:

Run commands into your container without going into, from your host machine:

docker-compose exec hello-docker-react mycommand

Enter into your container to run commands inside it (ssh-like):

docker-compose exec hello-docker-react bash

For advanced usage, follow the docker-compose command-line reference:

https://docs.docker.com/compose/reference/

Releases

No releases published

Packages

No packages published

Languages

  • Shell 57.5%
  • Dockerfile 42.5%