First Upload
This commit is contained in:
26
docker-compose.yaml
Normal file
26
docker-compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: "2.1"
|
||||
services:
|
||||
unifi-network-application:
|
||||
image: lscr.io/linuxserver/unifi-network-application:latest
|
||||
container_name: unifi-network-application
|
||||
environment:
|
||||
- PUID=1001
|
||||
- PGID=1001
|
||||
- TZ=America/New_York
|
||||
- MONGO_USER=unifi
|
||||
- MONGO_PASS=205gti205gti
|
||||
- MONGO_HOST=172.16.1.24
|
||||
- MONGO_PORT=27017
|
||||
- MONGO_DBNAME=unifi
|
||||
- MEM_LIMIT=2048 #optional
|
||||
- MEM_STARTUP=1024 #optional
|
||||
volumes:
|
||||
- ./docker-persist/config:/config
|
||||
# mac_address: 02:42:c0:a8:84:20
|
||||
networks:
|
||||
dmz-macvlan:
|
||||
ipv4_address: 172.16.1.68
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
dmz-macvlan:
|
||||
external: true
|
17
unifi-db/docker-compose.yaml
Normal file
17
unifi-db/docker-compose.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
unifi-db:
|
||||
image: docker.io/mongo:4.4
|
||||
container_name: unifi-db
|
||||
volumes:
|
||||
- ./db:/data/db
|
||||
# - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
|
||||
# mac_address: 02:42:c0:a8:84:21
|
||||
networks:
|
||||
dmz-macvlan:
|
||||
ipv4_address: 172.16.1.24
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
dmz-macvlan:
|
||||
external: true
|
2
unifi-db/init-mongo.js
Normal file
2
unifi-db/init-mongo.js
Normal file
@@ -0,0 +1,2 @@
|
||||
db.getSiblingDB("unifi").createUser({user: "unifi", pwd: "205gti205gti", roles: [{role: "dbOwner", db: "unifi"}]});
|
||||
db.getSiblingDB("unifi_stat").createUser({user: "unifi", pwd: "205gti205gti", roles: [{role: "dbOwner", db: "unifi_stat"}]});
|
Reference in New Issue
Block a user