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

Setting up container #233

Open
Wundo-1 opened this issue Jan 1, 2024 · 1 comment
Open

Setting up container #233

Wundo-1 opened this issue Jan 1, 2024 · 1 comment

Comments

@Wundo-1
Copy link

Wundo-1 commented Jan 1, 2024

Hello! Im new to docker and linux and am trying to figure this out. For the file structure i am using /opt/container1
I Created a .yml file and a .env file. and when i spun up the container only pihole installed (working healthy) but "sudo service unbound restart" gives "service not found" and "Dig" gives "server not found" I suspect unbound wasnt installed into the container and im curious what i have done wrong or Havent done. I have the .yml file and .env file in /opt/container1 am i also supposed to create a "unbound-pihole.conf, unbound-run" files? if so, where do i place those?

dockercompose.txt

@xteriormask4eva
Copy link

Sorry if this is over explaining but I didnt know how much your knew...

Basically this set up is sort of like a bunch of containers running in coordination... some call it "container orchestration"... anyways not important. What is important is that your docker-compose.yaml file and your .env file.. All should NOT have file extensions and the dockercompose file should be docker-compose.yaml.

With that here's a step by step.

  1. Next time you login in use this command to navigate to your home directory:
    cd /. Think of it as your windows desktop
  2. Next type this command:
    git clone https://github.com/chriscrowe/docker-pihole-unbound.git should create the folder and clone this repo as is.
  3. Then once again we navigate into the directory we want to spin up the container in with:
    cd /docker-pihole-unbound/one-container if you're unsure what the name is you can use ls to see the files in the directory. Note that we went into two directories with that command
  4. Next we will copy your .env file into this directory --> /docker-pihole-unbound/one-container (if you're not sure how to do this ask away) and then once inside said folder be sure to make the necessary changes to your docker-compose.yaml file.
  5. Now that all changes have been made double check that you have all the variables... remove the ones you don't need from your .env file (if you aren't port forwarding)
  6. utter the magic words with your keyboard sudo docker compose up -d ... have fun...

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

2 participants