In this video we learn how to host our own #Supabase and Supabase #storage on Amazon web services.
terminal lines:
sudo yum update
sudo yum install docker
sudo service docker start
sudo curl -L "https://github.com/docker/compose/rel... -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo yum install git -y
git clone --depth 1 https://github.com/supabase/supabase
cd supabase/docker
cp .env.example .env
sudo chmod 666 /var/run/docker.sock
docker-compose up
docker-compose down
curl "https://awscli.amazonaws.com/awscli-e..." -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws s3 ls
docker-compose up
insert into storage.buckets (id,name)
values ('mybucket','mybucket')
CREATE POLICY "ReadAccessToEveryone"
ON storage.buckets
FOR SELECT USING (
true
);
CREATE POLICY "InsertAccessToEveryone"
ON storage.buckets
FOR INSERT WITH CHECK (
true
);
CREATE POLICY "ReadObjectsAll"
ON storage.objects
FOR SELECT USING (
true
);
CREATE POLICY "InsertObjectsAll"
ON storage.objects
FOR INSERT WITH CHECK (
true
);