forked from barcus/bareos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ubuntu-pgsql.yml
100 lines (92 loc) · 3.2 KB
/
docker-compose-ubuntu-pgsql.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
## docker-compose Bareos Director/Storage/Client/webUI and PostgreSQL Database based on Ubuntu
version: '3'
services:
bareos-dir:
image: barcus/bareos-director:21-ubuntu-pgsql
volumes:
- /data/bareos/config/director:/etc/bareos
- /data/bareos/data/director:/var/lib/bareos # required for MyCatalog backup
environment:
- DB_INIT=true #should be 'true' if bareos db does not exist
- DB_UPDATE=false
- DB_HOST=bareos-db
- DB_PORT=5432
- DB_NAME=bareos
- DB_USER=bareos
- DB_PASSWORD=${DB_PASSWORD} # defined in .env file
- DB_ADMIN_USER=${DB_ADMIN_USER} # defined in .env file
- DB_ADMIN_PASSWORD=${DB_ADMIN_PASSWORD} # defined in .env file
- BAREOS_SD_HOST=bareos-sd
- BAREOS_SD_PASSWORD=${BAREOS_SD_PASSWORD} # defined in .env file
- BAREOS_FD_HOST=bareos-fd
- BAREOS_FD_PASSWORD=${BAREOS_FD_PASSWORD} # defined in .env file
- BAREOS_WEBUI_PASSWORD=${BAREOS_WEBUI_PASSWORD} # defined in .env file
- SMTP_HOST=smtpd:8025 # Local smtp container
#- [email protected] #optional
- [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:21-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} # defined in .env file
bareos-fd:
image: barcus/bareos-client:21-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} # defined in .env file
- FORCE_ROOT=false
#- PUID=1500 # force bareos user ID
#- PGID=1500 # force bareos group ID
bareos-webui:
image: barcus/bareos-webui:21-ubuntu
ports:
- 8080:80
environment:
- BAREOS_DIR_HOST=bareos-dir
- SERVER_STATS=yes
volumes:
- /data/bareos/config/webui:/etc/bareos-webui
bareos-db:
image: postgres:12
volumes:
- /data/pgsql/data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DB_ADMIN_USER} # defined in .env file
- POSTGRES_PASSWORD=${DB_ADMIN_PASSWORD} # defined in .env file
- POSTGRES_INITDB_ARGS=--encoding=SQL_ASCII
smtpd:
image: devture/exim-relay
# Optional tools
# Bareos API
bareos-api:
image: barcus/bareos-api:21
ports:
- 8000:8000
environment:
- BAREOS_DIR_HOST=bareos-dir
# Bareos metrics exporter for Prometheus
bareos-exporter:
image: vierbergenlars/bareos_exporter:v0.6.0
ports:
- 9625:9625
environment:
- DB_HOST=bareos-db
- DB_USER=bareos
- DB_PASSWORD=${DB_PASSWORD}
- WAIT_FOR_DB=15
depends_on:
- bareos-db
#EOF