Last active
April 21, 2019 01:04
-
-
Save kwilczynski/eaa948c7fedab9908713ca50445dcc43 to your computer and use it in GitHub Desktop.
Running Ubiquiti Unifi and MongoDB under Docker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
unifi: | |
container_name: 'unifi' | |
hostname: 'raspberry' | |
image: 'jacobalberty/unifi:arm32v7-beta' | |
network_mode: 'host' | |
environment: | |
TZ: 'Europe/Berlin' | |
RUNAS_UID0: 'false' | |
UNIFI_UID: '1000' | |
UNIFI_GID: '1000' | |
JVM_MAX_HEAP_SIZE: '512m' | |
ports: | |
- '6789:6789/tcp' | |
- '8080:8080/tcp' | |
- '8880:8880/tcp' | |
- '8443:8443/tcp' | |
- '8843:8843/tcp' | |
- '3478:3478/udp' | |
- '10001:10001/udp' | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- 'unifi:/unifi' | |
dns: | |
- '127.0.0.1' | |
- '1.1.1.1' | |
- '8.8.8.8' | |
restart: 'unless-stopped' | |
volumes: | |
unifi: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
mongo: | |
container_name: 'mongo' | |
hostname: 'mongo' | |
image: 'mongo:3.4' | |
environment: | |
TZ: 'Europe/Berlin' | |
ports: | |
- '27017:27017/tcp' | |
networks: | |
- 'unifi' | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- 'mongo:/data' | |
dns: | |
- '127.0.0.1' | |
- '1.1.1.1' | |
- '8.8.8.8' | |
restart: always | |
unifi: | |
container_name: 'unifi' | |
hostname: 'unifi' | |
image: 'jacobalberty/unifi:latest' | |
environment: | |
TZ: 'Europe/Berlin' | |
RUNAS_UID0: 'false' | |
UNIFI_UID: '1000' | |
UNIFI_GID: '1000' | |
DB_URI: 'mongodb://mongo/unifi' | |
STATDB_URI: 'mongodb://mongo/unifi_stat' | |
DB_NAME: 'unifi' | |
ports: | |
- '6789:6789/tcp' | |
- '8080:8080/tcp' | |
- '8880:8880/tcp' | |
- '8443:8443/tcp' | |
- '8843:8843/tcp' | |
- '3478:3478/udp' | |
- '10001:10001/udp' | |
networks: | |
- 'unifi' | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- 'unifi:/unifi' | |
dns: | |
- '127.0.0.1' | |
- '1.1.1.1' | |
- '8.8.8.8' | |
restart: 'unless-stopped' | |
depends_on: | |
- mongo | |
volumes: | |
mongo: | |
unifi: | |
networks: | |
unifi: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment