forked from Bruceforce/vaultwarden-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.43 KB
/
docker-compose.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
---
version: '3.7'
services:
# this will build the image - usually not needed
# bw_test:
# build: ./
# container_name: bw_test
# ports:
# - 8003:80
# volumes:
# - bitwarden:/data/
# - ./test:/backup_folder/
# restart: on-failure
# init: true
# environment:
# - DB_FILE=/data/db.sqlite3
# # uncomment this if you want your backup to be written to ./backup/ folder"
# - BACKUP_FILE=/backup_folder/db_backup/backup.sqlite3
# - CRON_TIME=*/1 * * * *
# - TIMESTAMP=false
# - UID=0
# - GID=0
bitwarden:
image: mprasil/bitwarden:latest
container_name: bitwarden2
ports:
- 8002:80
volumes:
- bitwarden:/data/
restart: on-failure
bw_backup:
image: bruceforce/bw_backup
container_name: bw_backup
restart: on-failure
init: true
depends_on:
- bitwarden
volumes:
- bitwarden:/data/
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# uncomment this if you want your backup to be written to ./backup/ folder"
# - ./backup:/backup_folder/
environment:
- DB_FILE=/data/db.sqlite3
# uncomment this if you want your backup to be written to ./backup/ folder"
# - BACKUP_FILE=/backup_folder/db_backup/backup.sqlite3
- BACKUP_FILE=/data/db_backup/backup.sqlite3
- CRON_TIME=0 5 * * *
- TIMESTAMP=false
- UID=0
- GID=0
volumes:
bitwarden: