add unifi still not finished
This commit is contained in:
parent
dca653d210
commit
edffb5e020
2
unifi/.env.example
Normal file
2
unifi/.env.example
Normal file
|
@ -0,0 +1,2 @@
|
|||
MONGO_PASS=
|
||||
MONGO_HOST=
|
51
unifi/compose.yml
Normal file
51
unifi/compose.yml
Normal file
|
@ -0,0 +1,51 @@
|
|||
services:
|
||||
unifi-network-application:
|
||||
image: lscr.io/linuxserver/unifi-network-application:latest
|
||||
container_name: unifi-network-application
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- MONGO_USER=unifi
|
||||
- MONGO_PASS=${MONGO_PASS}
|
||||
- MONGO_HOST=${MONGO_HOST} #unifi-db
|
||||
- MONGO_PORT=33202
|
||||
- MONGO_DBNAME=unifi
|
||||
- MONGO_AUTHSOURCE=admin
|
||||
- MEM_LIMIT=1024 #optional
|
||||
#- MEM_STARTUP=1024 #optional
|
||||
#- MONGO_TLS= #optional
|
||||
volumes:
|
||||
- ./data:/config
|
||||
ports:
|
||||
- 33201:8443
|
||||
- 3478:3478/udp
|
||||
- 10001:10001/udp
|
||||
- 33200:8080
|
||||
#- 1900:1900/udp #optional
|
||||
#- 8843:8843 #optional
|
||||
#- 8880:8880 #optional
|
||||
#- 6789:6789 #optional
|
||||
#- 5514:5514/udp #optional
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
|
||||
unifi-db:
|
||||
image: mongo:latest
|
||||
container_name: unifi-mongodb
|
||||
ports:
|
||||
- "33202:27017"
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME=unifi
|
||||
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS}
|
||||
- MONGO_INITDB_DATABASE=unifi
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- mongo-data:/data/db
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mongo-data:
|
||||
driver: local
|
Loading…
Reference in a new issue