mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 18:25:09 +00:00
Simply set STANDALONE=1 This will include all sidecars in one container. - dispatcher - syslong-ng - snmptrapd While the sidecars are great for highly orchestrated setups, the standalone mode is more ideal for simple single node setups (such as home networks). Additional docker-compose examples. Remove obsolete memcached references.
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
version: "3.5"
|
|
|
|
services:
|
|
db:
|
|
image: mariadb:10.7
|
|
container_name: librenms_db
|
|
command:
|
|
- "mysqld"
|
|
- "--innodb-file-per-table=1"
|
|
- "--lower-case-table-names=0"
|
|
- "--character-set-server=utf8mb4"
|
|
- "--collation-server=utf8mb4_unicode_ci"
|
|
volumes:
|
|
- "./db:/var/lib/mysql"
|
|
environment:
|
|
- "TZ=${TZ}"
|
|
- "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
|
|
- "MYSQL_DATABASE=librenms"
|
|
- "MYSQL_USER=librenms"
|
|
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
|
|
restart: always
|
|
|
|
librenms:
|
|
image: librenms/librenms:latest
|
|
container_name: librenms
|
|
hostname: librenms
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
ports:
|
|
- target: 8000
|
|
published: 8000
|
|
protocol: tcp
|
|
- target: 162
|
|
published: 162
|
|
protocol: tcp
|
|
- target: 162
|
|
published: 162
|
|
protocol: udp
|
|
- target: 514
|
|
published: 514
|
|
protocol: tcp
|
|
- target: 514
|
|
published: 514
|
|
protocol: udp
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- "./librenms:/data"
|
|
environment:
|
|
- "STANDALONE=1"
|
|
- "TZ=${TZ}"
|
|
- "PUID=${PUID}"
|
|
- "PGID=${PGID}"
|
|
- "DB_HOST=db"
|
|
- "DB_NAME=librenms"
|
|
- "DB_USER=librenms"
|
|
- "DB_PASSWORD=${MYSQL_PASSWORD}"
|
|
- "DB_TIMEOUT=60"
|
|
restart: always
|