1
0
IaC/podman/unifi.yaml

66 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-01-04 08:41:50 -05:00
version: "3.7"
2023-12-24 07:55:30 -05:00
services:
2024-01-04 08:41:50 -05:00
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
2023-12-24 07:55:30 -05:00
unifi:
2024-01-04 08:41:50 -05:00
# image: code.balsillie.net/containers/unifi:latest
image: lscr.io/linuxserver/unifi-network-application:latest
2023-12-24 07:55:30 -05:00
container_name: unifi
restart: always
2024-01-04 08:41:50 -05:00
networks:
unifi:
aliases:
- unifi
ipv4_address: 10.192.30.253
mongodb:
aliases:
- unifi
2023-12-24 07:55:30 -05:00
volumes:
2024-01-04 08:41:50 -05:00
- /docker/volumes/unifi:/config
2023-12-24 07:55:30 -05:00
environment:
2024-01-04 08:41:50 -05:00
- PUID=1000
- PGID=1000
2023-12-24 07:55:30 -05:00
- TZ=Pacific/Auckland
2024-01-04 08:41:50 -05:00
- MONGO_USER=unifi
- MONGO_PASS=unifi
- MONGO_HOST=mongodb.mongodb
- MONGO_PORT=27017
- MONGO_DBNAME=unifi
2023-12-24 07:55:30 -05:00
depends_on:
- mongodb
2024-01-04 08:41:50 -05:00
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
2023-12-24 07:55:30 -05:00
mongodb:
2024-01-04 08:41:50 -05:00
name: unifi
external: false
internal: true
driver: bridge