unifi/docker-compose.yml

43 lines
1.2 KiB
YAML

volumes:
db:
app:
networks:
traefik:
external: true
services:
app:
image: ${UNIFI_IMAGE:-linuxserver/unifi-network-application}:${UNIFI_VERSION:?}
container_name: ${UNIFI_NAME:-unifi}
environment:
PUID: 1000
PGID: 1000
TZ: ${TIMEZONE:-America/New_York}
MONGO_HOST: db
MONGO_PORT: 27017
MONGO_DBNAME: ${MONGO_DBNAME:-unifi}
MONGO_USER: ${MONGO_USER:-unifi}
MONGO_PASS: ${MONGO_PASS:?}
volumes:
- app:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
labels:
traefik.http.routers.unifi.rule: Host(`${DOMAIN:-unifi.local.krislamo.org}`)
traefik.http.routers.unifi.entrypoints: ${ENTRYPOINT:-web}
traefik.http.services.unifi.loadbalancer.server.port: 8443
traefik.http.services.unifi.loadbalancer.serverstransport: ignorecert
traefik.http.services.unifi.loadbalancer.server.scheme: https
traefik.http.serversTransports.ignorecert.insecureSkipVerify: "true"
traefik.docker.network: traefik
traefik.enable: true
db:
image: ${MONGO_IMAGE:-mongo}:${MONGO_VERSION:?}
container_name: ${MONGO_NAME:-unifi-db}
volumes:
- db:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro