I'm a Data Science and Engineering student from Italy.
Visit my website to find out more about me, projects I do and ideas I share.
Easily deploy Unifi Network Application, on Docker ๐ณ
License: MIT License
I'm a Data Science and Engineering student from Italy.
Visit my website to find out more about me, projects I do and ideas I share.
Is anyone else getting this error when running install.sh? I get this error and the dockers are not created (obviously since the docker-compose.yml file isn't interpreted correctly):
ERROR: In file './docker-compose.yml', service 'name' must be a mapping not a string.
I use Debian12 and installed docker-compose.
`Enter an absolute path to place the installation directory (or press Enter for the home folder): /mnt/Docker/Unifi
Installation directory already exists. Grant sudo access and let the script handle it, or delete it manually and restart the script.
Enter the password for the database (or press Enter for the default value: pass):
ERROR: The Compose file './docker-compose.yml' is invalid because:
'name' does not match any of the regexes: '^x-'
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services
key, or omit the version
key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
services.unifi-network-application.depends_on contains unsupported option: 'required'
Waiting for containers to start...
Waiting for containers to start...
Waiting for containers to start...
Waiting for containers to start...
`
It creates some folders at the paths. Thats it.
After: "Waiting for containers to start..." nothing happens
Hello Giuseppe,
i've an issue with the command docker compose up-d
unknown shorthand flag: 'd' in -d
See 'docker --help'.
thank you for your work ๐
Good Evening Giuseppe!
Thank you so much for this script it looks amazing!
My Issue: Unable to create directories at the path "/docker".
Error output from the script below.
Enter an absolute path to place the installation directory (or press Enter for the home folder): /docker
mkdir: cannot create directory โ/docker/unifiโ: Permission denied
Recreate issue: Run the single line with or without the sudo command and use the absolute path "/docker".
/docker and its recursive directories are owned by root as they were created by the docker RUN command.
Is there any way to run this command as a sudoer or work around this?
You may wanna include this guide as a prerequisite, as the normal docker and compose installations cant be called from your script.
https://gcore.com/learning/how-to-install-docker-compose-on-ubuntu/
I copied your generic version and gave it a spin, but I cannot get it to work. These are the logs from "docker logs unifi-db"
Error message is "UserNotFound: Could not find user unifi@#optional"
The web page does not load
2024-02-10T13:30:03.693+0000 I ACCESS [conn755] SCRAM-SHA-1 authentication failed for unifi on #optional from client 192.168.96.3:51506 ; UserNotFound: Could not find user unifi@#optional
2024-02-10T13:30:03.693+0000 I NETWORK [conn755] end connection 192.168.96.3:51506 (2 connections now open)
2024-02-10T13:30:03.694+0000 I NETWORK [conn754] end connection 192.168.96.3:51496 (1 connection now open)
2024-02-10T13:30:04.191+0000 I NETWORK [listener] connection accepted from 192.168.96.3:51522 #756 (2 connections now open)
2024-02-10T13:30:04.191+0000 I NETWORK [conn756] received client metadata from 192.168.96.3:51522 conn756: { driver: { name: "mongo-java-driver|sync", version: "4.6.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "6.5.0-17-generic" }, platform: "Java/Private Build/17.0.9+9-Ubuntu-122.04" }
2024-02-10T13:30:04.194+0000 I NETWORK [listener] connection accepted from 192.168.96.3:51528 #757 (3 connections now open)
2024-02-10T13:30:04.194+0000 I NETWORK [conn757] received client metadata from 192.168.96.3:51528 conn757: { driver: { name: "mongo-java-driver|sync", version: "4.6.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "6.5.0-17-generic" }, platform: "Java/Private Build/17.0.9+9-Ubuntu-122.04" }
2024-02-10T13:30:04.195+0000 I ACCESS [conn757] SCRAM-SHA-1 authentication failed for unifi on #optional from client 192.168.96.3:51528 ; UserNotFound: Could not find user unifi@#optional
2024-02-10T13:30:04.196+0000 I NETWORK [conn757] end connection 192.168.96.3:51528 (2 connections now open)
2024-02-10T13:30:04.197+0000 I NETWORK [conn756] end connection 192.168.96.3:51522 (1 connection now open)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.