blob: 330df3b0ae3c26f9f6aee625cd5cd7d58cc5431f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
services:
unifi:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi
environment:
- PUID=1002
- PGID=1002
- TZ=Europe/Berlin
- MONGO_USER=unifi
- MONGO_PASS=f0uYXfBmJKmfE3wge2v4xjtK8a7qmYat
- MONGO_HOST=unifi-db
- MONGO_PORT=27017
- MONGO_DBNAME=unifidb
volumes:
- type: bind
source: ./data/config
target: /data/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
depends_on:
- unifi-db
restart: unless-stopped
unifi-db:
image: mongo:4.4.6-bionic
container_name: unifi-db
volumes:
- type: bind
source: ./data/db
target: /data/db
- type: bind
source: ./init-mongo.js
target: /docker-entrypoint-initdb.d/init-mongo.js:ro
restart: unless-stopped
|