I want to move the unifi controller from the cloudkey into a container on OpenWrt.
I'm using this docker-compose file:
xg-135r3 in /etc/docker/unifi-controller # cat docker-compose.yml
---
version: "2.1"
services:
unifi-controller:
image: lscr.io/linuxserver/unifi-controller:latest
container_name: unifi-controller
environment:
- PUID=1000
- PGID=1000
- TZ=America/Vancouver
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
volumes:
- /etc/unifi-controller:/config
ports:
- 8443:8443
- 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
What's the best way to assign an IP address to the container different from my router's IP? Instead of 192.168.1.1 I want it to be 192.168.1.10 (same as the unplugged cloudkey) so I could just import the config and not adopt all the devices again?