-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
36 lines (36 loc) · 1.65 KB
/
compose.yml
File metadata and controls
36 lines (36 loc) · 1.65 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
services:
monitorat:
image: ghcr.io/brege/monitorat:latest
# build:
# context: .
# args:
# USER_IDENTIFIER: 1000 # CHANGE: run: id -u
# GROUP_IDENTIFIER: 1000 # CHANGE: run: id -g
# DOCKER_GROUP_IDENTIFIER: 115 # CHANGE: run: getent group docker | cut -d: -f3
# MESSAGEBUS_GID: 991 # CHANGE: run: getent group messagebus | cut -d: -f3
container_name: monitorat # optional: change for multiple instances
user: "1000:1000" # CHANGE: use: USER_IDENTIFIER:GROUP_IDENTIFIER
group_add:
- "115" # CHANGE: use: DOCKER_GROUP_IDENTIFIER
- "991" # CHANGE: use: MESSAGEBUS_GID
ports:
- "6161:6161" # optional: change host port for multiple instances
environment:
DBUS_SYSTEM_BUS_ADDRESS: unix:path=/run/dbus/system_bus_socket
volumes:
# syntax: /host/path:/container/path:ro
# paths.{data,docs,img,...} are mounted relative to ./config
- ./config:/config
# KEEP: for: services.items in /config/config.yaml
- /run/systemd:/run/systemd:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
# KEEP: for: metrics.enabled in /config/config.yaml
- /run/dbus:/run/dbus:ro
- /etc/machine-id:/etc/machine-id:ro
# CHANGE: for: metrics.storage.mounts in /config/config.yaml
- /mnt/music:/media/music:ro
- /mnt/linux-isos:/media/videos:ro
- /mnt/backups:/backups:ro
# CHANGE: for: network.log_file in /config/config.yaml
- /var/log/ddclient.log:/logs/ddclient.log:ro
restart: unless-stopped