-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
31 lines (29 loc) · 1.05 KB
/
docker-compose.yaml
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
## Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
version: "3"
services:
mediaserver:
build:
context: .
args:
COMPANY: ${COMPANY}
MEDIASERVER_DEB: ${MEDIASERVER_URL}
image: metavms-server:${MEDIASERVER_VERSION}
user: ${COMPANY}
ports:
- ${PORTS}
# To use the host network mode, comment out the ports above and uncomment the line below.
# network_mode: "host"
volumes:
- ${VOLUMES_PATH}/etc:/opt/${COMPANY}/mediaserver/etc
- ${VOLUMES_PATH}/var:/opt/${COMPANY}/mediaserver/var
- ${VOLUMES_PATH}/nx_ini:/home/${COMPANY}/.config/nx_ini
- ${VOLUMES_PATH}/entrypoint.d:/opt/mediaserver/entrypoint.d
- ${VOLUMES_PATH}/recordings:/recordings
- ${VOLUMES_PATH}/tmp:/tmp
mediaserver-root-tool:
image: metavms-server:${MEDIASERVER_VERSION}
user: root
# root-tool-bin is for versions < 4.3, root-tool is for versions >= 4.3.
command: ["/opt/${COMPANY}/mediaserver/bin/root-tool"]
volumes:
- ${VOLUMES_PATH}/tmp:/tmp