services:
  appflowy-cloud-gotrue-1:
    command:
    - ./start.sh
    container_name: appflowy-cloud-gotrue-1
    environment:
      API_EXTERNAL_URL: https://appflowy-server.pressmess.duckdns.org/gotrue
      DATABASE_URL: postgres://postgres:password@postgres:5432/postgres?search_path=auth
      GOTRUE_ADMIN_EMAIL: admin@example.com
      GOTRUE_ADMIN_PASSWORD: '***SENSITIVE_VALUE*** (pass...)'
      GOTRUE_DB_DRIVER: postgres
      GOTRUE_DISABLE_SIGNUP: 'false'
      GOTRUE_EXTERNAL_DISCORD_CLIENT_ID: ''
      GOTRUE_EXTERNAL_DISCORD_ENABLED: 'false'
      GOTRUE_EXTERNAL_DISCORD_REDIRECT_URI: https://appflowy-server.pressmess.duckdns.org/gotrue/callback
      GOTRUE_EXTERNAL_DISCORD_SECRET: '***SENSITIVE***'
      GOTRUE_EXTERNAL_GITHUB_CLIENT_ID: ''
      GOTRUE_EXTERNAL_GITHUB_ENABLED: 'false'
      GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI: https://appflowy-server.pressmess.duckdns.org/gotrue/callback
      GOTRUE_EXTERNAL_GITHUB_SECRET: '***SENSITIVE***'
      GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID: ''
      GOTRUE_EXTERNAL_GOOGLE_ENABLED: 'false'
      GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI: https://appflowy-server.pressmess.duckdns.org/gotrue/callback
      GOTRUE_EXTERNAL_GOOGLE_SECRET: '***SENSITIVE***'
      GOTRUE_JWT_ADMIN_GROUP_NAME: supabase_admin
      GOTRUE_JWT_EXP: '2592000'
      GOTRUE_JWT_SECRET: '***SENSITIVE_VALUE*** (hell...)'
      GOTRUE_MAILER_AUTOCONFIRM: 'true'
      GOTRUE_MAILER_TEMPLATES_MAGIC_LINK: ''
      GOTRUE_MAILER_URLPATHS_CONFIRMATION: /gotrue/verify
      GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: /gotrue/verify
      GOTRUE_MAILER_URLPATHS_INVITE: /gotrue/verify
      GOTRUE_MAILER_URLPATHS_RECOVERY: /gotrue/verify
      GOTRUE_RATE_LIMIT_EMAIL_SENT: '100'
      GOTRUE_SAML_ENABLED: 'false'
      GOTRUE_SAML_PRIVATE_KEY: '***SENSITIVE***'
      GOTRUE_SITE_URL: appflowy-flutter://
      GOTRUE_SMTP_ADMIN_EMAIL: comp_admin@some_company.com
      GOTRUE_SMTP_HOST: smtp.gmail.com
      GOTRUE_SMTP_MAX_FREQUENCY: 1ns
      GOTRUE_SMTP_PASS: '***SENSITIVE_VALUE*** (emai...)'
      GOTRUE_SMTP_PORT: '465'
      GOTRUE_SMTP_USER: email_sender@some_company.com
      GOTRUE_URI_ALLOW_LIST: '**'
      PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      PORT: '9999'
    image: appflowyinc/gotrue:latest
    restart: on-failure
    user: supabase
    working_dir: /
