Skip to content

Commit 199a596

Browse files
Bot Updating Templated Files
1 parent 683806a commit 199a596

File tree

1 file changed

+69
-34
lines changed

1 file changed

+69
-34
lines changed

readme-vars.yml

Lines changed: 69 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,42 @@ project_url: "https://ui.com/"
66
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/unifi-banner.png"
77
project_blurb: "The [{{ project_name|capitalize }}]({{ project_url }}) software is a powerful, enterprise wireless software engine ideal for high-density client deployments requiring low latency and high uptime performance."
88
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
9-
109
# supported architectures
1110
available_architectures:
12-
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
13-
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
14-
11+
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
12+
- {arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
1513
# container parameters
1614
param_container_name: "{{ project_name }}"
1715
param_usage_include_vols: true
1816
param_volumes:
19-
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/data", desc: "Persistent config files" }
20-
17+
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/data", desc: "Persistent config files"}
2118
param_usage_include_ports: true
2219
param_ports:
23-
- { external_port: "8443", internal_port: "8443", port_desc: "Unifi web admin port" }
24-
- { external_port: "3478", internal_port: "3478/udp", port_desc: "Unifi STUN port" }
25-
- { external_port: "10001", internal_port: "10001/udp", port_desc: "Required for AP discovery" }
26-
- { external_port: "8080", internal_port: "8080", port_desc: "Required for device communication" }
27-
20+
- {external_port: "8443", internal_port: "8443", port_desc: "Unifi web admin port"}
21+
- {external_port: "3478", internal_port: "3478/udp", port_desc: "Unifi STUN port"}
22+
- {external_port: "10001", internal_port: "10001/udp", port_desc: "Required for AP discovery"}
23+
- {external_port: "8080", internal_port: "8080", port_desc: "Required for device communication"}
2824
param_usage_include_env: true
2925
param_env_vars:
30-
- { env_var: "MONGO_USER", env_value: "unifi", desc: "Mongodb Username. Only evaluated on first run. **Special characters must be [url encoded](https://en.wikipedia.org/wiki/Percent-encoding)**." }
31-
- { env_var: "MONGO_PASS", env_value: "", desc: "Mongodb Password. Only evaluated on first run. **Special characters must be [url encoded](https://en.wikipedia.org/wiki/Percent-encoding)**." }
32-
- { env_var: "MONGO_HOST", env_value: "unifi-db", desc: "Mongodb Hostname. Only evaluated on first run." }
33-
- { env_var: "MONGO_PORT", env_value: "27017", desc: "Mongodb Port. Only evaluated on first run." }
34-
- { env_var: "MONGO_DBNAME", env_value: "unifi", desc: "Mongodb Database Name (stats DB is automatically suffixed with `_stat`). Only evaluated on first run." }
35-
- { env_var: "MONGO_AUTHSOURCE", env_value: "admin", desc: "Mongodb [authSource](https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource). For Atlas set to `admin`. Only evaluated on first run." }
36-
26+
- {env_var: "MONGO_USER", env_value: "unifi", desc: "Mongodb Username. Only evaluated on first run. **Special characters must be [url encoded](https://en.wikipedia.org/wiki/Percent-encoding)**."}
27+
- {env_var: "MONGO_PASS", env_value: "", desc: "Mongodb Password. Only evaluated on first run. **Special characters must be [url encoded](https://en.wikipedia.org/wiki/Percent-encoding)**."}
28+
- {env_var: "MONGO_HOST", env_value: "unifi-db", desc: "Mongodb Hostname. Only evaluated on first run."}
29+
- {env_var: "MONGO_PORT", env_value: "27017", desc: "Mongodb Port. Only evaluated on first run."}
30+
- {env_var: "MONGO_DBNAME", env_value: "unifi", desc: "Mongodb Database Name (stats DB is automatically suffixed with `_stat`). Only evaluated on first run."}
31+
- {env_var: "MONGO_AUTHSOURCE", env_value: "admin", desc: "Mongodb [authSource](https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource). For Atlas set to `admin`. Only evaluated on first run."}
3732
# optional container parameters
3833
opt_param_usage_include_env: true
3934
opt_param_env_vars:
40-
- { env_var: "MEM_LIMIT", env_value: "1024", desc: "Optionally change the Java memory limit (in Megabytes). Set to `default` to reset to default" }
41-
- { env_var: "MEM_STARTUP", env_value: "1024", desc: "Optionally change the Java initial/minimum memory (in Megabytes). Set to `default` to reset to default" }
42-
- { env_var: "MONGO_TLS", env_value: "", desc: "Mongodb enable [TLS](https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.tls). Only evaluated on first run." }
43-
35+
- {env_var: "MEM_LIMIT", env_value: "1024", desc: "Optionally change the Java memory limit (in Megabytes). Set to `default` to reset to default"}
36+
- {env_var: "MEM_STARTUP", env_value: "1024", desc: "Optionally change the Java initial/minimum memory (in Megabytes). Set to `default` to reset to default"}
37+
- {env_var: "MONGO_TLS", env_value: "", desc: "Mongodb enable [TLS](https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.tls). Only evaluated on first run."}
4438
opt_param_usage_include_ports: true
4539
opt_param_ports:
46-
- { external_port: "1900", internal_port: "1900/udp", port_desc: "Required for `Make controller discoverable on L2 network` option" }
47-
- { external_port: "8843", internal_port: "8843", port_desc: "Unifi guest portal HTTPS redirect port" }
48-
- { external_port: "8880", internal_port: "8880", port_desc: "Unifi guest portal HTTP redirect port" }
49-
- { external_port: "6789", internal_port: "6789", port_desc: "For mobile throughput test" }
50-
- { external_port: "5514", internal_port: "5514/udp", port_desc: "Remote syslog port" }
51-
40+
- {external_port: "1900", internal_port: "1900/udp", port_desc: "Required for `Make controller discoverable on L2 network` option"}
41+
- {external_port: "8843", internal_port: "8843", port_desc: "Unifi guest portal HTTPS redirect port"}
42+
- {external_port: "8880", internal_port: "8880", port_desc: "Unifi guest portal HTTP redirect port"}
43+
- {external_port: "6789", internal_port: "6789", port_desc: "For mobile throughput test"}
44+
- {external_port: "5514", internal_port: "5514/udp", port_desc: "Remote syslog port"}
5245
# application setup block
5346
app_setup_block_enabled: true
5447
app_setup_block: |
@@ -141,11 +134,53 @@ app_setup_block: |
141134
The simplest migration approach is to take a full backup of your existing install, including history, from the Unifi-Controller web UI, then shut down the old container.
142135
143136
You can then start up the new container with a clean `/config` mount (and a database container configured), and perform a restore using the setup wizard.
144-
137+
# init diagram
138+
init_diagram: |
139+
"unifi-network-application:latest": {
140+
docker-mods
141+
base {
142+
fix-attr +\nlegacy cont-init
143+
}
144+
docker-mods -> base
145+
legacy-services
146+
custom services
147+
init-services -> legacy-services
148+
init-services -> custom services
149+
custom services -> legacy-services
150+
legacy-services -> ci-service-check
151+
init-migrations -> init-adduser
152+
init-os-end -> init-config
153+
init-config -> init-config-end
154+
init-unifi-network-application-config -> init-config-end
155+
init-os-end -> init-crontab-config
156+
init-mods-end -> init-custom-files
157+
base -> init-envfile
158+
base -> init-migrations
159+
base -> init-mods
160+
init-config-end -> init-mods
161+
init-mods -> init-mods-end
162+
init-mods-package-install -> init-mods-end
163+
init-mods -> init-mods-package-install
164+
base -> init-os-end
165+
init-adduser -> init-os-end
166+
init-envfile -> init-os-end
167+
init-migrations -> init-os-end
168+
init-custom-files -> init-services
169+
init-mods-end -> init-services
170+
init-config -> init-unifi-network-application-config
171+
init-services -> svc-cron
172+
svc-cron -> legacy-services
173+
init-services -> svc-unifi-network-application
174+
svc-unifi-network-application -> legacy-services
175+
}
176+
Base Images: {
177+
"baseimage-ubuntu:noble"
178+
}
179+
"unifi-network-application:latest" <- Base Images
145180
# changelog
146181
changelogs:
147-
- { date: "11.08.24:", desc: "**Important**: The mongodb init instructions have been updated to enable auth ([RBAC](https://www.mongodb.com/docs/manual/core/authorization/#role-based-access-control)). We have been notified that if RBAC is not enabled, the official mongodb container allows remote access to the db contents over port 27017 without credentials. If you set up the mongodb container with the old instructions we provided, you should not map or expose port 27017. If you would like to enable auth, the easiest way is to create new instances of both unifi and mongodb with the new instructions and restore unifi from a backup." }
148-
- { date: "11.08.24:", desc: "Rebase to Ubuntu Noble." }
149-
- { date: "04.03.24:", desc: "Install from zip package instead of deb." }
150-
- { date: "17.10.23:", desc: "Add environment variables for TLS and authSource to support Atlas and new MongoDB versions." }
151-
- { date: "05.09.23:", desc: "Initial release." }
182+
- {date: "11.08.24:", desc: "**Important**: The mongodb init instructions have been updated to enable auth ([RBAC](https://www.mongodb.com/docs/manual/core/authorization/#role-based-access-control)). We have been notified that if RBAC is not enabled, the official mongodb container allows remote access to the db contents over port 27017 without credentials. If you set up the mongodb container with the old instructions we provided, you should not map or expose port 27017. If you would like to enable auth, the easiest way is to create new instances of both unifi and mongodb with the new instructions and restore unifi from a backup."}
183+
- {date: "11.08.24:", desc: "Rebase to Ubuntu Noble."}
184+
- {date: "04.03.24:", desc: "Install from zip package instead of deb."}
185+
- {date: "17.10.23:", desc: "Add environment variables for TLS and authSource to support Atlas and new MongoDB versions."}
186+
- {date: "05.09.23:", desc: "Initial release."}

0 commit comments

Comments
 (0)