-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (33 loc) · 892 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (33 loc) · 892 Bytes
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
services:
log-lens:
build:
context: .
dockerfile: Dockerfile
container_name: ${DP_PLUGIN_NAME}
ports:
- "${SERVER_PORT}:8080"
- "${RECEIVE_PORT}:24224"
- "${RECEIVE_PORT}:24224/udp"
#{{- if .SYSLOG_PORT }}
- "${SYSLOG_PORT}:15140/udp"
#{{- end }}
environment:
- RECEIVE_PORT=24224
- SYSLOG_PORT=15140
- DATA_RETENTION_DAYS=${DATA_RETENTION_DAYS}
- MAX_LOG_SIZE_MB=${MAX_LOG_SIZE_MB}
- TZ=${TIMEZONE}
- DP_HOST_IP=${DP_PLUGIN_HOST_IP}
- DP_NAME=${DP_PLUGIN_NAME}
- EXTERNAL_RECEIVE_PORT=${RECEIVE_PORT}
- EXTERNAL_SYSLOG_PORT=${SYSLOG_PORT}
volumes:
- dpanel-log-data:/data
#{{- if .LOG_PATHS }}
#{{- range $index, $path := split .LOG_PATHS "," }}
- "{{ trim $path }}:/logs/{{ $index }}"
#{{- end }}
#{{- end }}
restart: unless-stopped
volumes:
dpanel-log-data: