-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose-ubuntu-mysql.yml
88 lines (81 loc) · 2.53 KB
/
docker-compose-ubuntu-mysql.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
## docker-compose Bareos Director/Storage/Client/webUI and MySQL Database based on Ubuntu
version: '3'
services:
bareos-dir:
image: barcus/bareos-director:19-ubuntu-mysql
volumes:
- /data/bareos/config/director:/etc/bareos
- /data/bareos/data/director:/var/lib/bareos # required for MyCatalog backup
environment:
- DB_HOST=bareos-db
- DB_PORT=3306
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=bareos
- DB_USER=bareos
- BAREOS_SD_HOST=bareos-sd
- BAREOS_SD_PASSWORD=${BAREOS_SD_PASSWORD}
- BAREOS_FD_HOST=bareos-fd
- BAREOS_FD_PASSWORD=${BAREOS_FD_PASSWORD}
- BAREOS_WEBUI_PASSWORD=${BAREOS_WEBUI_PASSWORD}
- SMTP_HOST=smtpd:8025
#- SENDER_MAIL=your-sender@mail.address #optional
- ADMIN_MAIL=your@mail.address # Change me!
# Optional you can gets backup notification via Slack or Telegram
- WEBHOOK_NOTIFICATION=false # true or false if set to true email notification gets disabled
- WEBHOOK_TYPE=slack # choose slack or telegram
- WEBHOOK_URL= # set the slack or telegram URL
- WEBHOOK_CHAT_ID= # for telegram only set the <chat_id>
depends_on:
- bareos-db
bareos-sd:
image: barcus/bareos-storage:19-ubuntu
ports:
- 9103:9103
volumes:
- /data/bareos/config/storage:/etc/bareos
- /data/bareos/data/storage:/var/lib/bareos/storage
environment:
- BAREOS_SD_PASSWORD=${BAREOS_SD_PASSWORD}
bareos-fd:
image: barcus/bareos-client:19-ubuntu
volumes:
- /data/bareos/config/client:/etc/bareos
- /data/bareos/data/director:/var/lib/bareos-director # required for MyCatalog backup
environment:
- BAREOS_FD_PASSWORD=${BAREOS_FD_PASSWORD}
- FORCE_ROOT=false
#- PUID=1500
#- PGID=1500
bareos-webui:
image: barcus/bareos-webui:19-ubuntu
ports:
- 8080:80
environment:
- BAREOS_DIR_HOST=bareos-dir
- SERVER_STATS=yes
volumes:
- /data/bareos/config/webui:/etc/bareos-webui
bareos-db:
image: mysql:5.6
volumes:
- /data/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
smtpd:
image: devture/exim-relay
# Optional tools
# Bareos metrics exporter for Prometheus
bareos-exporter:
image: vierbergenlars/bareos_exporter:v0.6.0
ports:
- 9625:9625
environment:
- DB_TYPE=mysql
- DB_HOST=bareos-db
- DB_PORT=3306
- DB_USER=bareos
- DB_PASSWORD=${DB_PASSWORD}
- WAIT_FOR_DB=15
depends_on:
- bareos-db
#EOF