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

Commit

Permalink
Merge pull request #11 from vierbergenlars/dev-setup
Browse files Browse the repository at this point in the history
Create development setup with docker containers
  • Loading branch information
vierbergenlars authored Jul 20, 2021
2 parents 730d8b3 + 7ebcdb6 commit e710498
Show file tree
Hide file tree
Showing 6 changed files with 2,482 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:
26 changes: 26 additions & 0 deletions development/docker-compose.postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '2.2'

services:
bareos_exporter:
ports:
- 9625
build:
context: ..
command:
- "-dsn"
- "postgres://host=database user=postgres password=postgres dbname=postgres sslmode=disable"
- "-job-discovery-days"
- "20"
depends_on:
- database

database:
image: postgres
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data
- ./postgres:/docker-entrypoint-initdb.d/:ro

volumes:
postgres:
Loading

0 comments on commit e710498

Please sign in to comment.