https://github.com/shmuelmofrad/dataspace
development environment for SQL with PostgreSQL database
https://github.com/shmuelmofrad/dataspace
adminer codespaces docker postgresql template-repository vscode
Last synced: about 2 months ago
JSON representation
development environment for SQL with PostgreSQL database
- Host: GitHub
- URL: https://github.com/shmuelmofrad/dataspace
- Owner: ShmuelMofrad
- License: mit
- Created: 2023-06-25T18:14:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T11:11:10.000Z (over 2 years ago)
- Last Synced: 2025-01-20T15:22:17.870Z (about 1 year ago)
- Topics: adminer, codespaces, docker, postgresql, template-repository, vscode
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dataspace
if you want to learn SQL without pain on the cloud, this dataspace is for you.
This is a Postgresql and VSCode development environment on the Docker.
## Tools
- install [docker-Ex](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker)
run Terminal on **.devcontainer** directory
## Docker
- Build
docker build -t postgres .
- Docker-compose
docker-compose up -d
docker-compose -f multiple-db-docker-compose.yml up -d
docker-compose -f multiple-db-docker-compose.yml down
## Adminer
- Database: **postgres**
- user: postgres
- pass: example
- db: postgres
- server: db
- Database: **test**
- user: test
- pass: test
- db: test
- server: db-test
- Database: **db1**
- user: userdb
- pass: userdb
- db: db1
- server: db-multiple
# psql
Attach Shell on postgres container
su - postgres
psql
postgres=# help
You are using psql, the command-line interface to PostgreSQL.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit