version: "3.3"
services:
  grist:
    volumes:
      - grist:/persist
    extra_hosts:
      - 'auth.thesatelliteoflove.com:172.20.0.3'
    environment:
      - GRIST_SESSION_SECRET={{ grist_session_secret }}
      - APP_HOME_URL=https://grist.thesatelliteoflove.com
      - GRIST_OIDC_IDP_ISSUER=https://auth.thesatelliteoflove.com/application/o/grist/.well-known/openid-configuration
      - GRIST_OIDC_IDP_CLIENT_ID={{ grist_oidc_client_id }}
      - GRIST_OIDC_IDP_CLIENT_SECRET={{ grist_oidc_client_secret }}
    image: gristlabs/grist

volumes:
  grist:
    driver: local

networks:
  default:
    external: true
    name: lava