-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
104 lines (97 loc) · 3.8 KB
/
docker-compose.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# FossDash Project
#
# Copyright 2020 Orange
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is furnished
# to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
# IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Software Name : FossDash
# Version: 1.0
# SPDX-FileCopyrightText: Copyright (c) 2020 Orange
# SPDX-License-Identifier: MIT
#
# This software is distributed under the MIT license,
# the text of which is available at https://opensource.org/licenses/MIT
# or see the "license.txt" file for more details.
# Author: Drozdz Bartlomiej, Nicolas Toussaint
# Author: Darshan Kansagara <kansagara.darshan97@gmail.com>
# Software description: FossDash collects and displays metrics produced by FOSSology.
version: '2'
services:
grafana:
image: grafana/grafana:7.1.0
depends_on:
- apache-reverse-proxy
- influxdb
ports:
- "8081:3000"
restart: unless-stopped
environment:
- "GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER}"
- "GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}"
- "GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL}"
- "GF_SERVER_SERVE_FROM_SUB_PATH=${GF_SERVER_SERVE_FROM_SUB_PATH}"
# Two possibilities to install Plugins:
# This one to auto download wher the container is started.
# Nicer, but will be very annoying when behind a proxy
- "GF_INSTALL_PLUGINS=grafana-piechart-panel,vonage-status-panel,mxswat-separator-panel,mtanda-histogram-panel,michaeldmoore-multistat-panel"
# Alternative is point to a pre-downloaded Plugin folder.
# Please unzip provided grafana-etc/provisioning/plugins.tgz file first
#- "GF_PATHS_PLUGINS=/etc/grafana/provisioning/plugins/"
volumes:
- "./grafana-etc/provisioning:/etc/grafana/provisioning/:ro"
- "./grafana-etc/grafana.ini:/etc/grafana/grafana.ini:ro"
- "grafana:/var/lib/grafana"
networks:
- fossology_default
user: ${USER_ID}
influxdb:
image: influxdb
depends_on:
- apache-reverse-proxy
ports:
- "8086:8086" #influxdb
- "8090:8090"
- "8099:8099"
restart: unless-stopped
environment:
- "INFLUXDB_DB=fossology_db"
- "INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}"
- "INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}"
- "INFLUXDB_HTTP_SHARED_SECRET=${INFLUXDB_HTTP_SHARED_SECRET}"
volumes:
- "./influxdb-etc/influxdb.conf:/etc/influxdb/influxdb.conf:ro"
- "influxdb:/var/lib/influxdb"
networks:
- fossology_default
apache-reverse-proxy:
# To set the ServerName : https://httpd.apache.org/docs/2.2/en/mod/core.html#servername
#hostname: "${APACHE_REVERSE_PROXY_HOSTNAME}"
image: httpd:latest
ports:
- 8080:8080
volumes:
- ./reverse-proxy_configuration/httpd.conf:/usr/local/apache2/conf/httpd.conf
- /etc/hosts:/etc/hosts
networks:
- fossology_default
networks:
fossology_default:
external: true
volumes:
influxdb:
grafana: