Skip to content

Commit

Permalink
add shortcuts to supabase app
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Oct 28, 2024
1 parent c044a2f commit cefed5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
5 changes: 4 additions & 1 deletion app/supabase/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ save:
docker save timberio/vector | gzip -c -9 > $(IMG_DIR)/vector.tgz
docker save kong | gzip -c -9 > $(IMG_DIR)/kong.tgz


# copy to target machine: scp -r /tmp/docker xxx:/tmp/docker
tz: tarball
tarball: save
tar -cvf /tmp/supabase.tgz -C /tmp/docker supabase

copy:
ssh 10.10.10.10 'mkdir -p /tmp/docker/supabase'
rsync -avz /tmp/docker/supabase/ 10.10.10.10:/tmp/docker/supabase/

load:
cat $(IMG_DIR)/storage.tgz | gzip -d -c - | docker load
cat $(IMG_DIR)/imgproxy.tgz | gzip -d -c - | docker load
Expand Down
27 changes: 4 additions & 23 deletions conf/dbms/supabase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,36 +93,17 @@ all:
pg_vip_enabled: true
pg_vip_address: 10.10.10.2/24
pg_vip_interface: eth1
pg_default_schemas: [ monitor, extensions ] # default schemas to be created
pg_default_extensions: # default extensions to be created
- { name: adminpack ,schema: pg_catalog }
- { name: pg_stat_statements ,schema: extensions }
- { name: pgstattuple ,schema: extensions }
- { name: pg_buffercache ,schema: extensions }
- { name: pageinspect ,schema: extensions }
- { name: pg_prewarm ,schema: extensions }
- { name: pg_visibility ,schema: extensions }
- { name: pg_freespacemap ,schema: extensions }
- { name: postgres_fdw ,schema: public }
- { name: file_fdw ,schema: public }
- { name: btree_gist ,schema: public }
- { name: btree_gin ,schema: public }
- { name: pg_trgm ,schema: public }
- { name: intagg ,schema: public }
- { name: intarray ,schema: public }
- { name: pg_repack }

# supabase stateless part with docker compose
supabase:
hosts:
10.10.10.10:
vars:
docker_enabled: true
proxy_env: # add [OPTIONAL] proxy env to /etc/docker/daemon.json configuration file
no_proxy: "localhost,127.0.0.1,10.0.0.0/8,192.168.0.0/16,*.pigsty,*.aliyun.com,mirrors.*,*.myqcloud.com,*.tsinghua.edu.cn"
#http_proxy: http://user:pass@host:port
#all_proxy: http://user:pass@host:port
#https_proxy: http://user:pass@host:port
#docker_registry_mirrors: ['https://docker.xxxxx.io']
#proxy_env: # add [OPTIONAL] proxy env to /etc/docker/daemon.json configuration file
# no_proxy: "localhost,127.0.0.1,10.0.0.0/8,192.168.0.0/16,*.pigsty,*.aliyun.com,mirrors.*,*.myqcloud.com,*.tsinghua.edu.cn"
# #all_proxy: http://user:pass@host:port


#==============================================================#
Expand Down

0 comments on commit cefed5c

Please sign in to comment.