GitXplorerGitXplorer
p

local-dev-on-docker-compose

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
d789cc6af4a8a94445cff0c26a370cb7f0251e44

init

ppiglovesyou committed 3 years ago

README

The README file for this repository.

Local development with docker-compose example

Contents

  • Update a running container in a docker-compose cluster
  • Remote debug on a container (Node.js)

Update a running container in a docker-compose cluster

docker-compose up -d --no-deps --build node

...which is equivalent to

# Build
docker-compose build node

# Stop
docker-compose stop node

# Start
docker-compose up -d --no-deps node

Remote debug on a container (Node.js)

  1. Expose debugger port in docker-compose.yml
  2. Expose debugger port in Dockerfile
  3. Don't forget to expose debugging process with 0.0.0.0 to make it available from different IPs

Thanks