Install OpenWISP Docker Debian 12 [70% ready]
Installing the Docker Package
I used this instruction
https://github.com/openwisp/docker-openwisp
I had many troubles with this package in terms of versioning and networking but finally its running.
The most important commands are:
- Manually Installed docker compose
- Changed the setupscript section and comment the three lines if you have docker compose installed already:
install_debian() {
#apt_dependenices_setup
#setup_docker
#setup_docker_compose
setup_docker_openwisp
give_information_to_user
}
3. Now the files should be in /opt/openwisp/docker-openwisp/
Addapt the docker-compose.yml in this directory. I had to change the network IP address at the bottom because another container was running with the same IP Address (172.18.0.0 to 172.20.0.0)
4. Start the containers with TAG=edge
sudo make start TAG=edge -C /opt/openwisp/docker-openwisp/
https://github.com/openwisp/openwisp-radius/issues/311
Some more usefull Commands for this issue.
curl https://raw.githubusercontent.com/openwisp/docker-openwisp/master/deploy/auto-install.sh -o setup.sh
sudo bash setup.sh
pip config:
[global]
break-system-packages = true
make start TAG=latest -C /opt/openwisp/docker-openwisp/
sudo docker network ls
sudo docker-compose logs -f nginx
sudo docker compose -p docker-openwisp ps
docker pull openwisp/openwisp-radius
sudo docker inspect docker-openwisp_default
#This Command returns 0 when Port 11000 is available
nc -z 10.0.0.9 11000; echo $?
#Shows all active Listening Ports
sudo lsof -i -P -n | grep LISTEN
fluxdb 8086
sudo docker run -it --rm --network docker-openwisp_default postgres psql -h 6a4cb79bc9d8 -U admin
sudo docker exec -it docker-openwisp_postgres_1 sh
.env
DB_USER=postgres
DB_PASS=postgres
/var/lib/docker/volumes/docker-openwisp_postgres_data/_data
sudo docker-compose logs -f postgres
postgres_1 | 2024-03-05 14:07:59.763 UTC [165] FATAL: role "admin" does not exist
postgres_1 | 2024-03-05 14:07:59.986 UTC [166] FATAL: role "admin" does not exist
postgres_1 | 2024-03-05 14:08:00.081 UTC [167] FATAL: role "admin" does not exist
postgres_1 | 2024-03-05 14:13:04.991 UTC [114] FATAL: database "openwisp" does not exist
sudo docker inspect postgres
sudo docker run -it --rm b2a8fefe8a635025ef746db322a030f7f463d63fc7e5c37769793edcd66525a8 su
docker rmi --force openwisp/openwisp-base:latest \
openwisp/openwisp-base:intermedia-system \
openwisp/openwisp-base:intermedia-python \
openwisp/openwisp-nfs:latest \
`docker images -f "dangling=true" -q` \
`docker images | grep openwisp/docker-openwisp | tr -s ' ' | cut -d ' ' -f 3` &> /dev/null
2024/03/06 01:46:30 [emerg] 40#40: host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
nginx_1 | nginx: [emerg] host not found in upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
change freeradius service name to radius