Compare commits

...

3 Commits

Author SHA1 Message Date
935b2ccf9f chore: publish 3.9.0+v1.87.0 release 2023-07-18 21:33:23 +02:00
2445d9f33a fix: healthchecks 2023-06-12 14:14:43 +02:00
2a45273541 fix second oidc configuration 2023-05-31 15:50:55 +02:00
3 changed files with 19 additions and 5 deletions

View File

@ -6,8 +6,10 @@ services:
secrets: secrets:
- keycloak2_client_secret - keycloak2_client_secret
environment: environment:
- KEYCLOAK2_ALLOW_EXISTING_USERS
- KEYCLOAK2_CLIENT_ID - KEYCLOAK2_CLIENT_ID
- KEYCLOAK2_ENABLED - KEYCLOAK2_ENABLED
- KEYCLOAK2_ID
- KEYCLOAK2_NAME - KEYCLOAK2_NAME
- KEYCLOAK2_URL - KEYCLOAK2_URL

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: "matrixdotorg/synapse:v1.84.1" image: "matrixdotorg/synapse:v1.87.0"
volumes: volumes:
- "data:/data" - "data:/data"
depends_on: depends_on:
@ -61,7 +61,13 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=3.8.0+v1.84.1" - "coop-cloud.${STACK_NAME}.version=3.9.0+v1.87.0"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8008/health"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
db: db:
image: postgres:13-alpine image: postgres:13-alpine
@ -77,7 +83,11 @@ services:
networks: networks:
- internal - internal
healthcheck: healthcheck:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER" ] test: ["CMD", "pg_isready", "-U", "synapse"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
volumes: volumes:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
deploy: deploy:

View File

@ -609,12 +609,13 @@ oidc_providers:
{{ end }} {{ end }}
{{ if eq (env "KEYCLOAK2_ENABLED") "1" }} {{ if eq (env "KEYCLOAK2_ENABLED") "1" }}
- idp_id: keycloak2 - idp_id: {{ env "KEYCLOAK2_ID" }}
idp_name: {{ env "KEYCLOAK2_NAME" }} idp_name: {{ env "KEYCLOAK2_NAME" }}
issuer: "{{ env "KEYCLOAK2_URL" }}" issuer: "{{ env "KEYCLOAK2_URL" }}"
client_id: "{{ env "KEYCLOAK2_CLIENT_ID" }}" client_id: "{{ env "KEYCLOAK2_CLIENT_ID" }}"
client_secret: "{{ secret "keycloak2_client_secret" }}" client_secret: "{{ secret "keycloak2_client_secret" }}"
scopes: ["openid", "profile"] scopes: ["openid", "profile"]
allow_existing_users: {{ env "KEYCLOAK2_ALLOW_EXISTING_USERS" }}
user_mapping_provider: user_mapping_provider:
config: config:
localpart_template: "{{ "{{ user.preferred_username }}" }}" localpart_template: "{{ "{{ user.preferred_username }}" }}"
@ -622,12 +623,13 @@ oidc_providers:
{{ end }} {{ end }}
{{ if eq (env "KEYCLOAK3_ENABLED") "1" }} {{ if eq (env "KEYCLOAK3_ENABLED") "1" }}
- idp_id: keycloak3 - idp_id: {{ env "KEYCLOAK3_ID" }}
idp_name: {{ env "KEYCLOAK3_NAME" }} idp_name: {{ env "KEYCLOAK3_NAME" }}
issuer: "{{ env "KEYCLOAK3_URL" }}" issuer: "{{ env "KEYCLOAK3_URL" }}"
client_id: "{{ env "KEYCLOAK3_CLIENT_ID" }}" client_id: "{{ env "KEYCLOAK3_CLIENT_ID" }}"
client_secret: "{{ secret "keycloak3_client_secret" }}" client_secret: "{{ secret "keycloak3_client_secret" }}"
scopes: ["openid", "profile"] scopes: ["openid", "profile"]
allow_existing_users: {{ env "KEYCLOAK3_ALLOW_EXISTING_USERS" }}
user_mapping_provider: user_mapping_provider:
config: config:
localpart_template: "{{ "{{ user.preferred_username }}" }}" localpart_template: "{{ "{{ user.preferred_username }}" }}"