66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
|
|
mongodb:
|
|
image: mongo:4-focal
|
|
container_name: mongodb
|
|
command: ["docker-entrypoint.sh", "mongod", "--bind_ip_all", "--auth"]
|
|
restart: always
|
|
networks:
|
|
mongodb:
|
|
aliases:
|
|
- mongodb
|
|
volumes:
|
|
- /docker/volumes/mongodb/db:/data/db
|
|
- /docker/volumes/mongodb/init:/docker-entrypoint-initdb.d
|
|
environment:
|
|
- TZ=Pacific/Auckland
|
|
|
|
unifi:
|
|
# image: code.balsillie.net/containers/unifi:latest
|
|
image: lscr.io/linuxserver/unifi-network-application:latest
|
|
container_name: unifi
|
|
restart: always
|
|
networks:
|
|
unifi:
|
|
aliases:
|
|
- unifi
|
|
ipv4_address: 10.192.30.253
|
|
mongodb:
|
|
aliases:
|
|
- unifi
|
|
volumes:
|
|
- /docker/volumes/unifi:/config
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Pacific/Auckland
|
|
- MONGO_USER=unifi
|
|
- MONGO_PASS=unifi
|
|
- MONGO_HOST=mongodb.mongodb
|
|
- MONGO_PORT=27017
|
|
- MONGO_DBNAME=unifi
|
|
depends_on:
|
|
- mongodb
|
|
|
|
networks:
|
|
|
|
unifi:
|
|
name: unifi
|
|
external: false
|
|
driver: macvlan
|
|
driver_opts:
|
|
parent: vlan30
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 10.192.30.0/24
|
|
- gateway: 10.192.30.254
|
|
|
|
mongodb:
|
|
name: unifi
|
|
external: false
|
|
internal: true
|
|
driver: bridge
|