vanilla pg dokcer image setup

This commit is contained in:
Ruslan Talpa
2025-06-20 09:33:45 +03:00
parent cc3af6f7dd
commit 3e36d516c2
8 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
-- docker exec -it proxy-postgres psql -U postgres -c "CREATE SCHEMA IF NOT EXISTS neon_control_plane"
-- docker exec -it proxy-postgres psql -U postgres -c "CREATE TABLE neon_control_plane.endpoints (endpoint_id VARCHAR(255) PRIMARY KEY, allowed_ips VARCHAR(255))"
-- docker exec -it proxy-postgres psql -U postgres -c "CREATE ROLE proxy WITH SUPERUSER LOGIN PASSWORD 'password';"
CREATE SCHEMA IF NOT EXISTS neon_control_plane;
CREATE TABLE IF NOT EXISTS neon_control_plane.endpoints (
endpoint_id VARCHAR(255) PRIMARY KEY,
allowed_ips VARCHAR(255)
);
-- CREATE ROLE proxy WITH SUPERUSER LOGIN PASSWORD 'password';