Advertisement
Guest User

UnifiNetApp

a guest
Oct 27th, 2023
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.45 KB | Source Code | 0 0
  1. ---
  2. version: "3.8"
  3.  
  4. services:
  5.   mongo-unifi:
  6.     image: docker.io/mongo:4.4.25-focal # DO NOT CHANGE VERSION!
  7.     container_name: mongo-unifi
  8.     hostname: mongo-unifi
  9.     restart: unless-stopped
  10.     volumes:
  11.      - ./mongo:/data/db
  12.       # Needed only on first run to initialize the user and the database. Will be ignored on subsequent runs, so can be commented out. This file should be accessible by user set above.
  13.       - /root/.secrets/unifi/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
  14.  
  15.   unifi:
  16.     image: lscr.io/linuxserver/unifi-network-application:latest
  17.     container_name: unifi
  18.     hostname: unifi
  19.     restart: unless-stopped
  20.     depends_on:
  21.      - mongo-unifi
  22.     environment:
  23.      - MONGO_USER=unifi
  24.       - MONGO_PASS=blablabla
  25.       - MONGO_HOST=mongo-unifi
  26.       - MONGO_PORT=27017
  27.       - MONGO_DBNAME=UNIFI_DB
  28.       - MONGO_TLS=false
  29.     ports:
  30.      - 8443:8443 # Web GUI
  31.       - 3478:3478/udp # Unifi STUN port
  32.       - 10001:10001/udp # Required for AP discovery
  33.       - 8080:8080 # Required for device communication
  34.       - 1900:1900/udp # (optional) Required for "Make controller discoverable on L2 network" option
  35.       - 6789:6789 # (optional) Mobile throughput test
  36.       # - 8843:8843 # (optional) Unifi guest portal HTTPS redirect port
  37.       # - 8880:8880 # (optional) Unifi guest portal HTTP redirect port
  38.       # - 5514:5514/udp # (optional) Remote syslog port
  39.     volumes:
  40.      - ./unifi:/config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement