This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

63 lines
1.4 KiB
Django/Jinja

---
services:
unifi-db:
image: mongo:8.0-rc
container_name: {{ unifi_mongo_host }}
networks:
- unifi-network
volumes:
- db:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
restart: unless-stopped
unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi-network-application
networks:
- unifi-network
{% if proxy_type is defined %}
- proxy
{% endif %}
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MONGO_USER={{ unifi_mongo_user }}
- MONGO_PASS={{ unifi_mongo_user_pass }}
- MONGO_HOST={{ unifi_mongo_host }}
- MONGO_PORT=27017
- MONGO_DBNAME={{ unifi_mongo_db_name }}
volumes:
- config:/config
{% if proxy_type is defined %}
expose:
- 8443
{% endif %}
ports:
{% if proxy_type %}
- 18443:8443
{% else %}
- 8443:8443
{% endif %}
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional
restart: unless-stopped
networks:
unifi-network:
{% if proxy_type is defined %}
proxy:
external: true
{% endif %}
volumes:
config:
driver: local
db:
driver: local