Add compose app config for unif controller
This commit is contained in:
		
							
								
								
									
										68
									
								
								resources/docker-compose/unifi.yaml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								resources/docker-compose/unifi.yaml.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,68 @@
 | 
			
		||||
---
 | 
			
		||||
version: "3.7"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
  unifi:
 | 
			
		||||
    name: unifi
 | 
			
		||||
    driver: overlay
 | 
			
		||||
    ipam:
 | 
			
		||||
      driver: default
 | 
			
		||||
      config:
 | 
			
		||||
        - subnet: {{ omni_compose_apps.unifi.networks.main }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  unifi-data:
 | 
			
		||||
    name: datastore{{ omni_compose_apps.unifi.datastore }}
 | 
			
		||||
    driver: glusterfs
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  wlc:
 | 
			
		||||
    image: jacobalberty/unifi:{{ omni_compose_apps.unifi.versions.default }}
 | 
			
		||||
    hostname: en1-unifi-wlc
 | 
			
		||||
    init: true
 | 
			
		||||
    networks:
 | 
			
		||||
      - unifi
 | 
			
		||||
    ports:
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.8080 }}
 | 
			
		||||
        target: 8080
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.8443 }}
 | 
			
		||||
        target: 8443
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.8843 }}
 | 
			
		||||
        target: 8843
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.8880 }}
 | 
			
		||||
        target: 8880
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.3478 }}
 | 
			
		||||
        target: 3478
 | 
			
		||||
        protocol: udp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.6789 }}
 | 
			
		||||
        target: 6789
 | 
			
		||||
        protocol: tcp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
      - published: {{ omni_compose_apps.unifi.published.ports.10001 }}
 | 
			
		||||
        target: 10001
 | 
			
		||||
        protocol: udp
 | 
			
		||||
        mode: ingress
 | 
			
		||||
    volumes:
 | 
			
		||||
      - type: volume
 | 
			
		||||
        source: unifi-data
 | 
			
		||||
        target: /unifi
 | 
			
		||||
        read_only: false
 | 
			
		||||
    environment:
 | 
			
		||||
      RUNAS_UID0: "false"
 | 
			
		||||
      UNIFI_UID: "{{ omni_compose_apps.unifi.account.uid }}"
 | 
			
		||||
      UNIFI_GID: "{{ omni_compose_apps.unifi.account.uid }}"
 | 
			
		||||
      TZ: "Americas/New_York"
 | 
			
		||||
    deploy:
 | 
			
		||||
      replicas: 1
 | 
			
		||||
@@ -66,3 +66,21 @@ omni_compose_apps:
 | 
			
		||||
      main: 192.168.101.0/24
 | 
			
		||||
    versions:
 | 
			
		||||
      default: latest
 | 
			
		||||
  unifi:
 | 
			
		||||
    datastore: /appdata/unifi
 | 
			
		||||
    account:
 | 
			
		||||
      name: mech_ubnt
 | 
			
		||||
      uid: 1296
 | 
			
		||||
    published:
 | 
			
		||||
      ports:
 | 
			
		||||
        8080: 8080
 | 
			
		||||
        8443: 8443
 | 
			
		||||
        8843: 8843
 | 
			
		||||
        8880: 8880
 | 
			
		||||
        3478: 3478
 | 
			
		||||
        6789: 6789
 | 
			
		||||
        10001: 10001
 | 
			
		||||
    networks:
 | 
			
		||||
      main: 192.168.100.0/24
 | 
			
		||||
    versions:
 | 
			
		||||
      default: "5.12"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user