- Install dependencies
- Test containers locally
- Fill out the
.env
file per its.env.example
- Assuming that the containers are running, navigate to http://localhost:3000/ to use the website
- Fill out the
- Docker commands
# clean build (remove `--no-cache` for speed) docker-compose build --no-cache # start container docker-compose up -d # stop container docker-compose stop # destroy container and network docker-compose down --remove-orphans
- justfile runner commands
# help just # build image locally (no-cache) just build-clean # build image locally just build # start container just start # ssh just exec # stop container just stop # stop container, remove container and network just down
next.js/examples/with-docker at canary · vercel/next.js
Manage NEXT_PUBLIC Environment Variables at Runtime with Docker