This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
forked from dreyau/bareos_exporter
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add development setup for mysql database
- Loading branch information
1 parent
44fbbe7
commit 7ebcdb6
Showing
4 changed files
with
1,040 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '2.2' | ||
|
||
services: | ||
bareos_exporter: | ||
ports: | ||
- 9625 | ||
build: | ||
context: .. | ||
command: | ||
- "-dsn" | ||
- "mysql://bareos:bareos@tcp(database:3306)/bareos?parseTime=true" | ||
- "-job-discovery-days" | ||
- "20" | ||
depends_on: | ||
- database | ||
|
||
database: | ||
image: mariadb | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: 1 | ||
MYSQL_DATABASE: bareos | ||
MYSQL_USER: bareos | ||
MYSQL_PASSWORD: bareos | ||
|
||
volumes: | ||
- mysql:/var/lib/mysql | ||
- ./mysql:/docker-entrypoint-initdb.d/:ro | ||
|
||
volumes: | ||
mysql: |
File renamed without changes.
Oops, something went wrong.