Let's install Docker + Portainer + NGINX Proxy Manager on Oracle Cloud - Oracle Linux 7.9

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 36

  • @michaell7511
    @michaell7511 3 ปีที่แล้ว +6

    Thanks for this video. Still waiting for the follow-up you promised to see how you installed other containers and protected them with Nginx Proxy Manager. Thanks again!

    • @sauberlab-uk
      @sauberlab-uk  3 ปีที่แล้ว

      Hello Michael, I forgot about this. Leave with me, I will put in my list for next videos.

  • @emanuelj.rodriguez6389
    @emanuelj.rodriguez6389 ปีที่แล้ว

    Great video! Thanks for all the information, it was very helpful.

  • @gmoore48
    @gmoore48 3 ปีที่แล้ว

    I have just finished following this video and have everything working. I would like to get Lets Encrypt working so I am looking forward for your next video in this series. Thank You!

    • @sauberlab-uk
      @sauberlab-uk  3 ปีที่แล้ว +1

      Hello Greg, The NGINX will do the same activity as per Lets Encrypt. But I can show how to install only this tool as well as other option. :)

  • @vikkyvini1234
    @vikkyvini1234 6 หลายเดือนก่อน

    Could you please upload the second part.. it was a very good tutorial,,

  • @christosmak.6741
    @christosmak.6741 2 ปีที่แล้ว +1

    I would like to access portioner using https on 9443. I have created an ingress rule for it, but connections are timing out. What am I doing wrong?

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว +1

      If you have created an ingress rule to allow traffic on port 9443, it is possible that the issue is with the SSL certificate. By default, Portainer uses a self-signed certificate, which may not be trusted by your browser.
      To resolve this issue, you can either add the self-signed certificate to your browser's trusted certificates, or you can use a trusted SSL certificate. Here are the steps to use a trusted SSL certificate with Portainer:
      Obtain a trusted SSL certificate for your domain. You can obtain a free SSL certificate from Let's Encrypt using a tool like Certbot.
      Copy the SSL certificate and private key to your server.
      Update the docker-compose.yml file for Portainer to use the SSL certificate and private key. Add the following lines under the portainer service:
      ports:
      - "9443:9443"
      volumes:
      - /path/to/cert.pem:/cert.pem
      - /path/to/privkey.pem:/privkey.pem
      environment:
      - TZ=America/New_York
      - SSL_CERT_FILE=/cert.pem
      - SSL_KEY_FILE=/privkey.pem
      Replace /path/to/cert.pem and /path/to/privkey.pem with the paths to your SSL certificate and private key files.
      Run docker-compose up -d to start Portainer with SSL enabled.
      Once you have updated the docker-compose.yml file and restarted Portainer, you should be able to access Portainer using HTTPS on port 9443.

  • @gl5638
    @gl5638 2 ปีที่แล้ว +1

    Great video! I have a question, on the second step, yum-config-manager --enable ol7_optional_latest i get an error: No matching repo to modify: ol7_optional_latest Any ideas?? Tks.

    • @wilrik95
      @wilrik95 2 ปีที่แล้ว +1

      This is probably because you are running Oracle Linux 8 or 9. He is using 7. Just change the 7 for your version number.

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว

      The error message "No matching repo to modify: ol7_optional_latest" suggests that the repository configuration for the Oracle Linux 7 optional latest repository may not be available or properly configured on your system.
      You can try to check if the ol7_optional_latest repository is enabled on your system by running the following command:
      yum repolist enabled | grep ol7_optional_latest
      If it returns an empty output, it means that the repository is not enabled on your system. In this case, you can try to enable it by running the following command:
      yum-config-manager --enable ol7_optional
      This will enable the Oracle Linux 7 optional repository, which includes the latest packages for Oracle Linux 7.
      After enabling the repository, you can run the yum-config-manager --enable ol7_optional_latest command again to enable the latest packages in the repository.
      If you still encounter issues, you can try to check if the repository configuration file for ol7_optional_latest exists in /etc/yum.repos.d/ directory. If it does not exist, you may need to create it manually.

  • @christianjeffersonllajajim218
    @christianjeffersonllajajim218 10 หลายเดือนก่อน

    Al ejecutar este comando yum-config-manager --enable ol7_optional_latest, me sale ese
    Error: No matching repo to modify: ol7_optional_latest. how do I solve it?

  • @rubadubdubb
    @rubadubdubb ปีที่แล้ว

    the config manager gives me the error no matching repo to modify, how do I continue?

  • @cattivello
    @cattivello 2 ปีที่แล้ว

    Hi, very good video. I have moved on and created a host to be able to access Nginx from the internet. I have my subdomain pointing to oracle. Till I keep port 81 open in Oracle, all works fine. If I close port 81 in the Oracle Ingress Rules, I cant access it anymore. You mentioned in this video that is than possible to delete the port 81. How?
    More over, I am familiar with Nginx in my own network and have many Hosts configured, but I am unable to redirect to a service using Nginx on Oracle.
    Can you show us an example please?

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว +1

      Hello,
      You can direct the port 81 using proxy manger. Than you can go at the firewall on the oracle cloud and remove port 81. In this way you are still able to use your Nginx but the only open port will be the port 80 for http and port 443 for https.
      Regarding second question, it will be in one of my next videos. Meanwhile, here's an example of how you can use Nginx on Oracle Cloud to redirect traffic to a service:
      Let's say you have a service running in a Docker container on port 8080, and you want to access it using a subdomain, "example.domain.com".
      1. First, create a new configuration file for the Nginx server block by running:
      sudo nano /etc/nginx/sites-available/example.domain.com.conf
      2. Then, add the following contents to the file:
      server {
      listen 80;
      listen [::]:80;
      server_name example.domain.com;
      location / {
      proxy_pass localhost:8080;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      }
      }
      3. Save and close the file.
      4. Next, enable the new configuration file by creating a symbolic link to it in the sites-enabled directory:
      sudo ln -s /etc/nginx/sites-available/example.domain.com.conf /etc/nginx/sites-enabled/
      5. Then, test the configuration and reload Nginx by running:
      sudo nginx -t
      sudo systemctl reload nginx
      Now, when you visit "example.domain.com" in your web browser, Nginx will redirect traffic to the service running on port 8080.
      Note: Make sure you have opened the necessary ports in your Oracle Cloud firewall rules to allow traffic to reach the Nginx server.

    • @cattivello
      @cattivello ปีที่แล้ว

      @@sauberlab-uk Hi, thanks for your reply.
      Now, thats the thing, when I delete port 81 from the ingress rules, I loose the access to Nginx. and I am forwarding the request to port 81. And I also am able to create a letsencrypt.
      But if port 81 is gone from the ingress rules, I dont access it anymore.
      Is it possible that the IP to forward to is the tricky part?
      I must use the cloud IP to be able to access Nginx after port forwarding within Nginx (yet with ingress rules port 81 open).
      In relation to the second question, I guess I will pick it up after I am able to access Nginx.
      Any extra suggestions are welcome
      Thanks

  • @guillepunx
    @guillepunx 3 ปีที่แล้ว

    I tried to use this same method, opening port 2375 on ingress rules, to be able to access with Portainer on my own server to the docker api on the Oracle VM but still I cant acess to it. What I could be doing wrong?

    • @sauberlab-uk
      @sauberlab-uk  3 ปีที่แล้ว

      Sorry Guille, But i did not get what you intend to do. Could you please explain better? if I understand correct, you want to do a cluster between oracle cloud and your server. Could you please tell me if i get it correct?

    • @guillepunx
      @guillepunx 3 ปีที่แล้ว

      @@sauberlab-uk I have Portainer installed on one of my home servers, and I use that container to access the docker API in other machines, not to use it as cluster, but just to manage the different docker machines.
      I was trying to do the same to access to the docker API on the Oracle VM, but can't reach it even if I open the port on the ingress rules. I had to also open the port on the iptable on the VM, after that it worked great.

    • @UniversityOfMassachusets
      @UniversityOfMassachusets 2 ปีที่แล้ว

      @@guillepunx I understand what you mean but please tell me you figured it out?? I have another container i want to access and added an ingress rule but cant connect still. I hope youre still alive in this world bro I need to figure this shit out

  • @pranavshinde2535
    @pranavshinde2535 2 ปีที่แล้ว

    does this work on Oracle Ampere ?

    • @cattivello
      @cattivello 2 ปีที่แล้ว +1

      Yes, you can choose Ampere when creating an instance in Oracle cloud. That is what I used. (ubuntu OS)

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว

      Yes, this guide should work on Oracle Ampere instances as well, as long as the instance is running Oracle Linux 7.9 or later. The steps for installing Docker, Portainer, and NGINX Proxy Manager should be the same regardless of the instance type.

  • @ATBHDX
    @ATBHDX 3 ปีที่แล้ว

    How to change default user name of nextcloud installed on TrueNAS please please answer thankuuu

    • @sauberlab-uk
      @sauberlab-uk  3 ปีที่แล้ว

      Hello, the only method that I know is do the log in on the nextcloud and create a new account Than delete the stand NCP account.
      The other method is going to the SQL, but I`m not confident about this.
      Could you please tell me the issue that you have? In this way I can see if I`m able to help you.

  • @UniversityOfMassachusets
    @UniversityOfMassachusets 2 ปีที่แล้ว

    I wish you went more in depth with the ingress rule. I have containers I want to access outside the VM but cant even after added an ingress rule.

    • @donglobal
      @donglobal 2 ปีที่แล้ว

      I have the same problem

    • @UniversityOfMassachusets
      @UniversityOfMassachusets 2 ปีที่แล้ว +1

      @@donglobal feel like we need a part 2 video about going in depth on how to access your containers within the bum externally. From front end, backend, and even the database

    • @donglobal
      @donglobal 2 ปีที่แล้ว

      @@UniversityOfMassachusets completely agree with you

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว

      Sure, meanwhile, I can provide some more information on ingress rules and how to troubleshoot issues with accessing containers outside of your VM on Oracle Cloud.
      Ingress rules allow incoming traffic to your virtual machine (VM) from a specific port or IP address. In order to access containers outside of your VM, you need to set up ingress rules that allow traffic to flow from the internet to your VM.
      Here are some steps to troubleshoot issues with accessing containers outside of your VM:
      Check that the ingress rule is set up correctly. Make sure that the ingress rule allows traffic to the specific port that your container is running on. You can check this by running sudo iptables -L -n on your VM and looking for the port that your container is running on.
      Check that your container is listening on the correct port. You can check this by running sudo docker ps to list your running containers, and then running sudo docker inspect [container_id] to see the container's details, including the port it is listening on.
      Check that your container's network settings are correct. By default, Docker creates a network for your container, and the container is assigned an IP address on that network. You need to make sure that the container is configured to use the network that you want it to be accessible on, and that the network settings are configured correctly. You can check this by running sudo docker network ls to list the available networks, and then running sudo docker inspect [container_id] to see the container's network settings.
      Check that your container's firewall settings are correct. If your container has a firewall installed, make sure that it allows traffic to the port that your container is running on. You can check this by running sudo docker exec -it [container_id] bash to open a shell in the container, and then running sudo iptables -L -n to list the container's firewall rules.
      If you've checked all of these steps and you're still having issues accessing your container outside of your VM, it may be worth checking your Oracle Cloud network settings and security rules to make sure that traffic is allowed to flow from the internet to your VM.
      I hope this helps! Let me know if you have any other questions.

  • @fabianzac
    @fabianzac 2 ปีที่แล้ว

    Very good video, but can you update the command for oracle linux 8?

    • @sauberlab-uk
      @sauberlab-uk  ปีที่แล้ว +3

      Certainly! Here's the updated command for Oracle Linux 8:
      sudo dnf install -y yum-utils
      sudo yum-config-manager --add-repo download.docker.com/linux/centos/docker-ce.repo
      sudo dnf install -y docker-ce docker-ce-cli containerd.io
      sudo systemctl enable docker
      sudo systemctl start docker
      Note that the package repository is now download.docker.com/linux/centos/docker-ce.repo.

  • @khaledamirat7933
    @khaledamirat7933 3 ปีที่แล้ว

    lol best combinition ever

  • @teotlmusic
    @teotlmusic 2 ปีที่แล้ว

    Everything perfect but please, stop saying chew instead of to