variables:
  main_domain: ${domain}
  db_password: ${password}
  public_db_port: ${randomPort}

config:
  domains:
    - serviceName: teable
      port: 3000
      host: ${main_domain}

  env:
    TEABLE_HOST: ${main_domain}
    TEABLE_DB_PORT: ${public_db_port}
    TIMEZONE: "UTC"
    # Postgres
    POSTGRES_HOST: "teable-db"
    POSTGRES_PORT: "5432"
    POSTGRES_DB: "teable"
    POSTGRES_USER: "teable"
    POSTGRES_PASSWORD: ${db_password}
    # App
    PUBLIC_ORIGIN: https://${main_domain}
    PRISMA_DATABASE_URL: postgresql://teable:${db_password}@teable-db:5432/teable
    PUBLIC_DATABASE_PROXY: ${TEABLE_HOST}:${TEABLE_DB_PORT}
    # Need to support sending emails to enable the following configurations
    # You need to modify the configuration according to the actual situation, otherwise it will not be able to send emails correctly.
    #BACKEND_MAIL_HOST: "smtp.teable.io"
    #BACKEND_MAIL_PORT: "465"
    #BACKEND_MAIL_SECURE: "true"
    #BACKEND_MAIL_SENDER: "noreply.teable.io"
    #BACKEND_MAIL_SENDER_NAME: "Teable"
    #BACKEND_MAIL_AUTH_USER: "username"
    #BACKEND_MAIL_AUTH_PASS: "password"

  mounts: [] 