Quick start
# PostgreSQL with sample data and Gresbase
curl -fsSLO https://raw.githubusercontent.com/amtzespinosa/gresbase/main/deploy/docker-compose.demo.yml
docker compose -f docker-compose.demo.yml up -d
services:
gresbase:
image: ghcr.io/amtzespinosa/gresbase:latest
restart: unless-stopped
environment:
# Your PostgreSQL database
DATABASE_URL: postgres://USER:PASSWORD@HOST:5432/DBNAME
GRESBASE_READ_ONLY: "false"
volumes:
- gresbase-data:/data
ports:
- "127.0.0.1:8082:8080"
volumes:
gresbase-data:
docker run -d --name gresbase \
-e DATABASE_URL=postgres://USER:PASSWORD@HOST:5432/DBNAME \
-e GRESBASE_READ_ONLY=false \
-p 127.0.0.1:8082:8080 \
-v gresbase-data:/data \
--restart unless-stopped \
ghcr.io/amtzespinosa/gresbase:latest
- 1Paste it into a terminal
- 2Open
localhost:8080
- 1Save it as
docker-compose.yml - 2Fill in
DATABASE_URL - 3Start it with
docker compose up -d - 4Open
localhost:8082
- 1Fill in
DATABASE_URL - 2Paste it into a terminal
- 3Open
localhost:8082
Browse and edit tables, and review every change before it’s saved.