-
-
Notifications
You must be signed in to change notification settings - Fork 309
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
60 lines (58 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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:
- "MONOLITHIC=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