Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Latest commit

 

History

History
60 lines (42 loc) · 1.43 KB

DOCKER.md

File metadata and controls

60 lines (42 loc) · 1.43 KB

Docker

Setup

Usage

  • 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
  • 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

Further Reading

Deployment | Next.js

next.js/examples/with-docker at canary · vercel/next.js

Manage NEXT_PUBLIC Environment Variables at Runtime with Docker

docker image with NEXT_PUBLIC_ env variables