Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- version: "3.8"
- services:
- mongo-unifi:
- image: docker.io/mongo:4.4.25-focal # DO NOT CHANGE VERSION!
- container_name: mongo-unifi
- hostname: mongo-unifi
- restart: unless-stopped
- volumes:
- - ./mongo:/data/db
- # 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.
- - /root/.secrets/unifi/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- unifi:
- image: lscr.io/linuxserver/unifi-network-application:latest
- container_name: unifi
- hostname: unifi
- restart: unless-stopped
- depends_on:
- - mongo-unifi
- environment:
- - MONGO_USER=unifi
- - MONGO_PASS=blablabla
- - MONGO_HOST=mongo-unifi
- - MONGO_PORT=27017
- - MONGO_DBNAME=UNIFI_DB
- - MONGO_TLS=false
- ports:
- - 8443:8443 # Web GUI
- - 3478:3478/udp # Unifi STUN port
- - 10001:10001/udp # Required for AP discovery
- - 8080:8080 # Required for device communication
- - 1900:1900/udp # (optional) Required for "Make controller discoverable on L2 network" option
- - 6789:6789 # (optional) Mobile throughput test
- # - 8843:8843 # (optional) Unifi guest portal HTTPS redirect port
- # - 8880:8880 # (optional) Unifi guest portal HTTP redirect port
- # - 5514:5514/udp # (optional) Remote syslog port
- volumes:
- - ./unifi:/config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement