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

Command Fix - "docker-compose" anywhere #65

Open
cbytestech opened this issue Jun 22, 2021 · 0 comments
Open

Command Fix - "docker-compose" anywhere #65

cbytestech opened this issue Jun 22, 2021 · 0 comments

Comments

@cbytestech
Copy link

cbytestech commented Jun 22, 2021

So the most frustrating thing I've run into is the constant

root@debian:/# docker-compose up -d
ERROR:
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml

as well as the error from VPN running before starting docker once more
Created this

  1. navigate to bin dir
    cd /bin
  2. create a file for the function
    nano d-compose.sh
  3. input the following into the file
#!/bin/bash

#turn off VPN(if you have a different VPN like OpenVPN, enter the disconnect command here)
windscribe disconnect 

#restart docker servers(make sure to change the filepath to reflect yours)
(cd /htpc/htpc-download-box && docker-compose down)
(cd /htpc/htpc-download-box && docker-compose up -d)

#turn VPN on(if you have a different VPN like OpenVPN, enter the connect command here)
windscribe connect

exit
  1. Exit and save
  2. try and run it
    d-compose.sh
@cbytestech cbytestech changed the title Command Fix Command Fix - "docker-compose" anywhere Jun 22, 2021
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

No branches or pull requests

1 participant