Skip to content

nderevjanik-fond/docker-sandbox

Repository files navigation

Docker Sandbox

A sandbox for experimenting with docker.

Prerequisites

Usage

Development / Debug

  1. Start the application in debug mode (note the use of a debug docker-compose file)
  2. Identify a component (golang-service, node-service, react-web-app, etc) that you'd like to debug
  3. Add breakpoints in VSCode
  4. Launch "Attach to component" (from VSCode's Run and Debug view)
  5. Use the application so that it triggers the breakpoints
# Start and use the application in debug mode
> docker compose -f "docker-compose.debug.yml" up -d --build
> curl localhost:3000

# Stop the application
> docker compose -f "docker-compose.debug.yml" down

Production

# Start and use the application
> docker compose -f "docker-compose.yml" up -d --build
> curl localhost:3000

# Stop the application
> docker compose -f "docker-compose.yml" down

About

A sandbox for experimenting with docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published