sebgl / htpc-download-box

Sonarr / Radarr / Jackett / NZBGet / Deluge / OpenVPN / Plex
1.97k stars 322 forks source link

Command Fix - "docker-compose" anywhere #65

Open cbytestech opened 3 years ago

cbytestech commented 3 years ago

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