pihole, bitwarden,nginx unbound in portainer

January 4, 2024, 11:20

.zatara

Hello, I'm trying to setup bitwarden and nginx in portainer, i was running PiHole without portainer but decide to remove it and use portainer, i tried changing the port to 8080 but it didn't seem to let me open the web interface, when i did that on normal install it worked. Having problems installing nginx because it's mixing ports. I'm also having troubles setting up unbound with my pihole through portainer, anyone have a guide for this?

coshi75

Setting up Bitwarden, Nginx, and Unbound with Portainer can involve several steps, and it's crucial to handle port conflicts properly. Here's a general guide to help you with the setup:

coshi75

Bitwarden with Portainer: Ensure that Bitwarden is properly configured within Portainer, and there are no conflicts with other services. If you changed the Portainer port to 8080 and can't access the web interface, check if there are any firewall rules preventing access. Also, verify that Portainer is running correctly.

coshi75

Nginx with Portainer: If you're having trouble installing Nginx due to port conflicts, identify the service that is using the conflicting ports and stop or reconfigure it. When installing Nginx through Portainer, make sure to map the container's port correctly. For example, map host port 8081 to container port 80.

coshi75

Unbound with Pi-hole and Portainer: To set up Unbound with Pi-hole in Portainer, ensure that you map the correct ports and configure the necessary environment variables. Here's a sample Docker Compose snippet for running Unbound and Pi-hole together: version: "3" services: pihole: image: pihole/pihole:latest environment: - ServerIP=192.168.1.2 # Replace with your server's IP - DNS1=127.0.0.1#5335 - DNS2=1.1.1.1 # Other Pi-hole settings... unbound: image: mvance/unbound:latest ports: - "5335:5335/udp" # Other Unbound settings... Adjust the configuration based on your network setup.

coshi75

Port Conflicts Resolution: Regularly check for port conflicts using commands like netstat or lsof. Resolve any conflicts by adjusting the conflicting services or changing their port mappings. Firewall Settings: Check the firewall settings on your server to ensure they allow traffic on the necessary ports. Adjust the rules if needed. Debugging: If issues persist, check the logs of the respective containers for error messages. Use the docker logs command to view container logs and identify potential issues. Please note that the above steps are general guidelines, and you may need to adapt them based on your specific setup and requirements. Always refer to the documentation of each service for more detailed configuration options.

.zatara

Should i use that one or alpinelinux/unbound:latest ? What's the difference? I'll check everything out in a bit, thank you so much though

.zatara

<@1073697879832674344> Hello, i managed to make it work 🙂 but i decided to stop using portainer/removed it, to me it seemed like an easier solution with GUIs and everything organized but nope, can't manage that. seemed like stuff with extra steps/walls for me

.zatara

Rn i'm going to try bitwarden/etc

.zatara

i meant i got unbound working with pihole