Code Monkey home page Code Monkey logo

Comments (5)

brhahlen avatar brhahlen commented on July 20, 2024 1

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?

from dc.

brhahlen avatar brhahlen commented on July 20, 2024 1

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

from dc.

brhahlen avatar brhahlen commented on July 20, 2024

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?

from dc.

oxr463 avatar oxr463 commented on July 20, 2024

Ah... Yes, that sounds awesome!

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

from dc.

oxr463 avatar oxr463 commented on July 20, 2024

Ah... Yes, thank you for explaining.

from dc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.