codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
74 stars 15 forks source link

[docker-compose] Add setup service to install node_modules and init db #475

Closed lihebi closed 1 year ago

lihebi commented 1 year ago

New docker-compose stack behavior:

  1. remove xxx-node_modules volumes. We'll install directly on the mounted host dir.
  2. add a setup service to run pnpm install and initialize DB.

As a result, the new development workflow:

# step 1 (run once): install node_modules and initialize DB
docker compose up setup

# step 2: fire up the stack
docker compose up -d
senwang86 commented 1 year ago

Seems like docker-compose down can't shut down the containers anymore.

lihebi commented 1 year ago

You need to use the old compose.yaml to shutdown the old stack.