Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Add development setup for mysql database
Browse files Browse the repository at this point in the history
  • Loading branch information
vierbergenlars committed Jul 20, 2021
1 parent 44fbbe7 commit 7ebcdb6
Show file tree
Hide file tree
Showing 4 changed files with 1,040 additions and 0 deletions.
30 changes: 30 additions & 0 deletions development/docker-compose.mysql.yml
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.
Loading

0 comments on commit 7ebcdb6

Please sign in to comment.