forked from barcus/bareos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-alpine-v2.yml
122 lines (115 loc) · 2.88 KB
/
docker-compose-alpine-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
## 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:18-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=ThisIsMySecretDBp4ssw0rd
- DB_NAME=bareos
- DB_USER=root
- BAREOS_SD_HOST=bareos-sd
- BAREOS_SD_PASSWORD=ThisIsMySecretSDp4ssw0rd
- BAREOS_FD_HOST=bareos-fd
- BAREOS_FD_PASSWORD=ThisIsMySecretFDp4ssw0rd
- BAREOS_WEBUI_PASSWORD=ThisIsMySecretUIp4ssw0rd
- SMTP_HOST=smtpd
- [email protected] # Change me!
depends_on:
- bareos-db
bareos-sd:
image: barcus/bareos-storage:18-alpine
ports:
- 9103:9103
volumes:
- storage_config:/etc/bareos
- storage_data:/var/lib/bareos/archive
environment:
- BAREOS_SD_PASSWORD=ThisIsMySecretSDp4ssw0rd
bareos-fd:
image: barcus/bareos-client:18-alpine
volumes:
- client_config:/etc/bareos
- director_data:/var/lib/bareos-director # required for MyCatalog backup
environment:
- BAREOS_FD_PASSWORD=ThisIsMySecretFDp4ssw0rd
bareos-webui:
image: barcus/bareos-webui:18-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=ThisIsMySecretDBp4ssw0rd
smtpd:
image: namshi/smtp
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