<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>AI on PIGSTY</title>
    <link>https://v27.pgsty.pro/categories/ai/</link>
    <description>Recent content in AI on PIGSTY</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Sun, 23 Jun 2024 00:00:00 +0000</lastBuildDate>
    
    
      <atom:link href="https://v27.pgsty.pro/categories/ai/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>Supabase: Self-Hosting OSS Firebase</title>
        <link>https://v27.pgsty.pro/docs/software/supabase/</link>
        <pubDate>Sun, 23 Jun 2024 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/software/supabase/</guid>
        <description>&lt;p&gt;&lt;a href=&#34;https://supabase.com/&#34;&gt;Supabase&lt;/a&gt;, The open-source Firebase alternative based on PostgreSQL.&lt;/p&gt;&#xA;&lt;p&gt;Pigsty allow you to self-host &lt;strong&gt;supabase&lt;/strong&gt; with existing managed HA postgres cluster, and launch the stateless part of supabase with docker-compose.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Notice: Supabase is &lt;a href=&#34;https://supabase.com/ga&#34;&gt;GA&lt;/a&gt; since 2024.04.15&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;quick-start&#34;&gt;Quick Start&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;To run supabase with existing postgres instance, prepare the &lt;a href=&#34;https://v27.pgsty.pro/docs/software/supabase/#database&#34;&gt;database&lt;/a&gt; with &lt;a href=&#34;https://github.com/Vonng/pigsty/blob/v2.7.0/files/pigsty/supabase.yml&#34;&gt;&lt;code&gt;supabase.yml&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;then launch the &lt;a href=&#34;https://v27.pgsty.pro/docs/software/supabase/#stateless-part&#34;&gt;stateless part&lt;/a&gt; with the &lt;a href=&#34;https://github.com/Vonng/pigsty/blob/v2.7.0/app/supabase/docker-compose.yml&#34;&gt;&lt;code&gt;docker-compose.yml&lt;/code&gt;&lt;/a&gt; file:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-07a44e46-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-07a44e46-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; app/supabase&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; make up    &lt;span class=&#34;c1&#34;&gt;# https://supabase.com/docs/guides/self-hosting/docker&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Then you can access the supabase studio dashboard via &lt;code&gt;http://&amp;lt;admin_ip&amp;gt;:8000&lt;/code&gt; by default, the default dashboard username is &lt;code&gt;supabase&lt;/code&gt; and password is &lt;code&gt;pigsty&lt;/code&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Jupyter: AI Notebook &amp; IDE</title>
        <link>https://v27.pgsty.pro/docs/software/jupyter/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/software/jupyter/</guid>
        <description>&lt;p&gt;Run jupyter notebook with docker, you have to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;change the default password in &lt;a href=&#34;https://github.com/Vonng/pigsty/blob/v2.7.0/app/jupyter/.env&#34;&gt;&lt;code&gt;.env&lt;/code&gt;&lt;/a&gt;: &lt;code&gt;JUPYTER_TOKEN&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;create data dir with proper permission: &lt;code&gt;make dir&lt;/code&gt;, owned by &lt;code&gt;1000:100&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;&lt;code&gt;make up&lt;/code&gt; to pull up jupyter with docker compose&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-98cfe27f-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-98cfe27f-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; ~/pigsty/app/jupyter &lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; make dir up&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Visit &lt;a href=&#34;http://lab.pigsty&#34;&gt;http://lab.pigsty&lt;/a&gt; or http://10.10.10.10:8888, the default password is &lt;code&gt;pigsty&lt;/code&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://lab.pigsty?token=pigsty&#34;&gt;&lt;code&gt;http://lab.pigsty?token=pigsty&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;prepare&#34;&gt;Prepare&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Create a data directory &lt;code&gt;/data/jupyter&lt;/code&gt;, with the default uid &amp;amp; gid &lt;code&gt;1000:100&lt;/code&gt;:&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
