Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Aug 27, 2023

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

@lihebi lihebi merged commit e4a1159 into codepod-io:main Aug 28, 2023
1 check passed
@senwang86
Copy link
Collaborator

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

@lihebi
Copy link
Collaborator Author

lihebi commented Aug 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants