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

Example usage #35

Closed
oxr463 opened this issue Jun 6, 2022 · 5 comments
Closed

Example usage #35

oxr463 opened this issue Jun 6, 2022 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@oxr463
Copy link

oxr463 commented Jun 6, 2022

Why would I use this instead of docker-compose? What would that look like?

@brhahlen brhahlen self-assigned this Jun 7, 2022
@brhahlen brhahlen added the documentation Improvements or additions to documentation label Jun 7, 2022
@brhahlen
Copy link
Owner

So, for docker-compose (or docker-compose) you would have to go to the directory that the docker-compose.yml file is in and run the commands from there.
With dc, you can run commands from wherever you are on the prompt.

So, for instance, you could run dc restart nginx and dc would restart the nginx container like that.

Does that help?

@oxr463
Copy link
Author

oxr463 commented Jun 10, 2022

Ah... Yes, that sounds awesome!

How does it know where the docker-compose.yml file is located?

@brhahlen
Copy link
Owner

When installing, you specify a DC_DIR variable, which is stored in your .bashrc
The DC_DIR contains subdirectories (stacks) with the different docker-compose.yml files

For instance:
<DC_DIR>/1-backends/docker-compose.yml
<DC_DIR>2-system/docker-compose.yml

Makes sense?

@oxr463
Copy link
Author

oxr463 commented Jun 10, 2022

Ah... Yes, thank you for explaining.

@brhahlen
Copy link
Owner

If alright with you, I'll close this issue.
I've created a new issue (#44) for this.

@oxr463 oxr463 closed this as completed Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants