diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-12-16 19:40:59 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-12-16 19:40:59 +0100 |
commit | e6bdbaba13c4acc0a22d9f9f85a47f698f5a1393 (patch) | |
tree | ea5dd0b080110fa21c14cafa41fe4c9be5fe6af0 | |
parent | 661ce5505ca22f96a6d0b9420e701df25686e29c (diff) |
migrate to new network application image
-rw-r--r-- | compose.yml | 22 | ||||
-rw-r--r-- | data/config/.gitkeep | 0 |
2 files changed, 19 insertions, 3 deletions
diff --git a/compose.yml b/compose.yml index d33ef03..f0ade17 100644 --- a/compose.yml +++ b/compose.yml @@ -1,18 +1,34 @@ services: unifi: - image: lscr.io/linuxserver/unifi-controller:latest + 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: ./config - target: /config + source: ./data/config + target: /data/config ports: - 8443:8443 - 3478:3478/udp - 10001:10001/udp - 8080:8080 restart: unless-stopped + unifi-db: + image: docker.io/mongo:7.0 + 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 diff --git a/data/config/.gitkeep b/data/config/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/data/config/.gitkeep |