-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (61 loc) · 1.48 KB
/
docker-compose.yaml
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
version: '3'
services:
keycloak:
image: quay.io/keycloak/keycloak:23.0.4
environment:
KC_HOSTNAME: sandbox.auth.library.ucdavis.edu
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: true
KC_PROXY: edge
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://db/postgres
depends_on:
db:
condition: service_started
init:
condition: service_completed_successfully
env_file:
- .env
ports:
- 3123:8080
command: ["start"]
db:
image: postgres:15.3
env_file:
- .env
volumes:
- db-data:/var/lib/postgresql/data
backup:
image: gcr.io/ucdlib-pubreg/auth-kc-utils:v1.0.1
env_file:
- .env
depends_on:
- db
environment:
PGHOST: 'db'
PGDATABASE: 'postgres'
PGPORT: 5432
GOOGLE_APPLICATION_CREDENTIALS: /etc/service-account.json
GC_BACKUP_BUCKET: itis-iam/keycloak
BACKUP_FILE_NAME: db.sql.gz
volumes:
- ./gc-writer-key.json:/etc/service-account.json
command: ./backup/entrypoint.sh
init:
image: gcr.io/ucdlib-pubreg/auth-kc-utils:v1.0.1
env_file:
- .env
depends_on:
- db
environment:
PGHOST: 'db'
PGDATABASE: 'postgres'
PGPORT: 5432
GOOGLE_APPLICATION_CREDENTIALS: /etc/service-account.json
GC_BACKUP_BUCKET: itis-iam/keycloak
BACKUP_FILE_NAME: db.sql.gz
volumes:
- ./gc-reader-key.json:/etc/service-account.json
command: ./init/init.sh
volumes:
db-data: