-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose-alpine-mysql-v2.yml
128 lines (121 loc) · 3.25 KB
/
docker-compose-alpine-mysql-v2.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
## docker-compose Bareos Director/Storage/Client/webUI, PHP-FPM and MySQL Database based on Alpine
version: '3.7'
services:
bareos-dir:
image: barcus/bareos-director:19-alpine
volumes:
- director_config:/etc/bareos
- director_data:/var/lib/bareos # required for MyCatalog backup
environment:
- DB_HOST=bareos-db
- DB_PORT=3306
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=bareos
- DB_USER=${DB_USER}
- 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 # Local smtp container
- [email protected] # 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-alpine
ports:
- 9103:9103
volumes:
- storage_config:/etc/bareos
- storage_data:/var/lib/bareos/archive
environment:
- BAREOS_SD_PASSWORD=${BAREOS_SD_PASSWORD}
bareos-fd:
image: barcus/bareos-client:19-alpine
volumes:
- client_config:/etc/bareos
- director_data:/var/lib/bareos-director # required for MyCatalog backup
environment:
- BAREOS_FD_PASSWORD=${BAREOS_FD_PASSWORD}
- FORCE_ROOT=false
bareos-webui:
image: barcus/bareos-webui:19-alpine
ports:
- 8080:9100
environment:
- BAREOS_DIR_HOST=bareos-dir
- PHP_FPM_HOST=php-fpm
- PHP_FPM_PORT=9000
volumes:
- webui_config:/etc/bareos-webui
- webui_data:/usr/share/bareos-webui
depends_on:
- php-fpm
php-fpm:
image: barcus/php-fpm-alpine
volumes:
- webui_config:/etc/bareos-webui
- webui_data:/usr/share/bareos-webui
bareos-db:
image: mysql:5.6
volumes:
- mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
smtpd:
image: devture/exim-relay
volumes:
director_config:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/config/director'
director_data:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/data/director'
storage_config:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/config/storage'
storage_data:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/data/storage'
client_config:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/config/client'
webui_config:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/config/webui'
webui_data:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/bareos/data/webui'
mysql_data:
driver: local
driver_opts:
type: none
o: 'bind'
device: '/data/mysql/data'
#EOF