30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
# Google Calendar + Google Meet, and optionally Google login.
|
|
# Setup: https://console.cloud.google.com/
|
|
# 1. Create a project and enable the Google Calendar API
|
|
# 2. Create OAuth 2.0 credentials (Web application type)
|
|
# 3. Add redirect URI: https://${DOMAIN}/auth/google/callback
|
|
#
|
|
# One set of credentials serves both, but the two are not the same switch. The calendar and Meet integrations work with ENABLE_GOOGLE_AUTH left false, and users can still connect their Google Calendar. Google login is off until you set it true.
|
|
#
|
|
# The dependency only runs the other way: ENABLE_GOOGLE_AUTH needs this overlay.
|
|
|
|
services:
|
|
app:
|
|
environment:
|
|
- GOOGLE_CLIENT_ID
|
|
- ENABLE_GOOGLE_AUTH
|
|
secrets:
|
|
- google_client_secret
|
|
- google_state_secret
|
|
|
|
secrets:
|
|
google_client_secret:
|
|
external: true
|
|
name: ${STACK_NAME}_google_client_secret_${SECRET_GOOGLE_CLIENT_SECRET_VERSION:-v1}
|
|
google_state_secret:
|
|
external: true
|
|
name: ${STACK_NAME}_google_state_secret_${SECRET_GOOGLE_STATE_SECRET_VERSION:-v1}
|