-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (90 loc) · 2.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (90 loc) · 2.94 KB
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
services:
postgres:
image: postgres:18
restart: unless-stopped
environment:
TZ: ${BSENTINEL_DEFAULT_TIMEZONE:-Europe/Berlin}
POSTGRES_DB: "${DB_NAME:-backup_reports}"
POSTGRES_USER: "${DB_USER:-backup_reports}"
POSTGRES_PASSWORD: "${DB_PASSWORD:-backup_reports}"
PGDATA: /var/lib/postgresql/data
volumes:
- ./postgres:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
retries: 10
timeout: 5s
start_period: 10s
backup-sentinel:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- path: .env
required: false
environment:
APP_URL: ${APP_URL:-https://backup-sentinel.example.com}
TZ: ${BSENTINEL_DEFAULT_TIMEZONE:-Europe/Berlin}
BSENTINEL_DEFAULT_TIMEZONE: ${BSENTINEL_DEFAULT_TIMEZONE:-Europe/Berlin}
BSENTINEL_DATABASE_URL: ${BSENTINEL_DATABASE_URL:-postgresql://backup_reports:backup_reports@postgres:5432/backup_reports}
BSENTINEL_DEBUG: ${BSENTINEL_DEBUG:-false}
BSENTINEL_INSECURE_SSL: ${BSENTINEL_INSECURE_SSL:-false}
BSENTINEL_BRAND_LOGO_LIGHT_URL: ${BSENTINEL_BRAND_LOGO_LIGHT_URL:-}
BSENTINEL_BRAND_LOGO_DARK_URL: ${BSENTINEL_BRAND_LOGO_DARK_URL:-}
FOOTER_LINKS: "${FOOTER_LINKS:-}"
COPYRIGHT_TEXT: "${COPYRIGHT_TEXT:-}"
volumes:
- ./data:/data
- ./reports:/reports
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:80/healthz', timeout=3)"
]
interval: 5s
retries: 20
timeout: 3s
start_period: 5s
oauth2-backup-sentinel:
image: quay.io/oauth2-proxy/oauth2-proxy:latest
restart: unless-stopped
depends_on:
backup-sentinel:
condition: service_healthy
env_file:
- ./oauth2-proxy.env
environment:
TZ: ${BSENTINEL_DEFAULT_TIMEZONE:-Europe/Berlin}
OAUTH2_PROXY_SKIP_AUTH_ROUTES: ${OAUTH2_PROXY_SKIP_AUTH_ROUTES:-^/metrics$,^/healthz$,^/bootstrap/proxmox-agent\.sh$,^/bootstrap/pbs-agent\.sh$,POST=^/api/bootstrap/finalize$,^/api/bootstrap/pbs-finalize$}
OAUTH2_PROXY_SKIP_AUTH_REGEX: ${OAUTH2_PROXY_SKIP_AUTH_REGEX:-^/metrics$|^/healthz$|^/bootstrap/proxmox-agent\.sh$|^/bootstrap/pbs-agent\.sh$|^/api/bootstrap/finalize$|^/api/bootstrap/pbs-finalize$}
OAUTH2_PROXY_UPSTREAM_TIMEOUT: 30s
logging:
driver: "local"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "oauth2-proxy", "--version"]
interval: 30s
retries: 3
start_period: 10s
timeout: 5s
networks:
- default
- shared-valkey
- shared-npm
networks:
shared-npm:
name: shared-npm
external: true
shared-valkey:
name: shared-valkey
external: true