This repository has been archived by the owner on Jul 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
150 lines (150 loc) · 4.53 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '3.8'
services:
accountant-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/accountatn-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-accountant}
- POSTGRES_DB=opex_accountant
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
auth-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/auth-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-auth}
- POSTGRES_DB=opex_auth
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
wallet-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/wallet-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-wallet}
- POSTGRES_DB=opex_wallet
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
eventlog-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/eventlog-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-eventlog}
- POSTGRES_DB=opex_eventlog
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
api-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/api-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-api}
- POSTGRES_DB=opex_api
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
bc-gateway-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/bc-gateway-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-bc-gateway}
- POSTGRES_DB=opex_bc_gateway
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
payment-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/payment-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-payment}
- POSTGRES_DB=opex_payment
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
referral-backup:
image: prodrigestivill/postgres-backup-local
volumes:
- $DATA/referral-backup:/backups
networks:
- default
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres-referral}
- POSTGRES_DB=opex_referral
- POSTGRES_USER=${DB_BACKUP_USER}
- POSTGRES_PASSWORD=${DB_BACKUP_PASS}
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
- SCHEDULE=*/30 * * * *
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=8080
restart: unless-stopped
networks:
default:
name: ${DEFAULT_NETWORK_NAME:-opex}
driver: bridge