|
@@ -0,0 +1,55 @@
|
|
1
|
+version: '2'
|
|
2
|
+
|
|
3
|
+services:
|
|
4
|
+ postgres:
|
|
5
|
+ image: postgres:13-alpine
|
|
6
|
+ restart: ${ALL_RESTART_POLICY}
|
|
7
|
+ networks:
|
|
8
|
+ main.internal.docker:
|
|
9
|
+ aliases:
|
|
10
|
+ - postgres.main.internal.docker
|
|
11
|
+ volumes:
|
|
12
|
+ - ./data/postgres/data:/var/lib/postgresql/data
|
|
13
|
+ environment:
|
|
14
|
+ - POSTGRES_USER=${POSTGRES_USER}
|
|
15
|
+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
16
|
+ - POSTGRES_DB=${POSTGRES_DB}
|
|
17
|
+ ports:
|
|
18
|
+ - "127.0.0.1:35250:5432"
|
|
19
|
+
|
|
20
|
+ postgres-backup:
|
|
21
|
+ image: prodrigestivill/postgres-backup-local:13-alpine
|
|
22
|
+ restart: ${ALL_RESTART_POLICY}
|
|
23
|
+ networks:
|
|
24
|
+ main.internal.docker:
|
|
25
|
+ aliases:
|
|
26
|
+ - postgres-backup.main.internal.docker
|
|
27
|
+ volumes:
|
|
28
|
+ - ./data/postgres-backup/data:/backups
|
|
29
|
+ environment:
|
|
30
|
+ - POSTGRES_USER=${POSTGRES_USER}
|
|
31
|
+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
32
|
+ - POSTGRES_DB=${POSTGRES_DB}
|
|
33
|
+ - POSTGRES_HOST=${POSTGRES_HOST}
|
|
34
|
+ - SCHEDULE=0 17 2 * * * # every day at 02:17:00 AM
|
|
35
|
+ - BACKUP_KEEP_DAYS=7
|
|
36
|
+ - BACKUP_KEEP_WEEKS=4
|
|
37
|
+ - BACKUP_KEEP_MONTHS=12
|
|
38
|
+
|
|
39
|
+ bitwarden:
|
|
40
|
+ image: bitwardenrs/server:1.19.0-alpine
|
|
41
|
+ restart: ${ALL_RESTART_POLICY}
|
|
42
|
+ networks:
|
|
43
|
+ main.internal.docker:
|
|
44
|
+ aliases:
|
|
45
|
+ - bitwarden.main.internal.docker
|
|
46
|
+ volumes:
|
|
47
|
+ - ./data/bitwarden/data:/bw-data/
|
|
48
|
+ environment:
|
|
49
|
+ - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}
|
|
50
|
+ - ADMIN_TOKEN=${BW_ADMIN_TOKEN}
|
|
51
|
+ ports:
|
|
52
|
+ - "127.0.0.1:35251:80"
|
|
53
|
+
|
|
54
|
+networks:
|
|
55
|
+ main.internal.docker:
|