Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding pgAdmin #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,15 @@ services:
POSTGRES_USER: root
POSTGRES_HOST_AUTH_METHOD: trust

pgadmin:
image: dpage/pgadmin4:8.9
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "password"
depends_on:
- postgres

redis:
image: redis:7.2-alpine
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Any Extensions will also run in the same container, meaning that intellisense wi
- `php:8.3-fpm-alpine` container with pgsql and redis extensions.
- `nginx:1.27-alpine` preconfigured for your Laravel application.
- `postgres:16.3-alpine` preconfigured with the default Laravel credentials.
- `pgadmin4:8.9` container with pgAdmin.
- `redis:7.2-alpine` for caching, queues, sessions, etc.

#### Easy Installation
Expand Down Expand Up @@ -60,6 +61,10 @@ You may then navigate to [`localhost`](http://localhost) on your local machine.
Run any artisan or composer commands using the Visual Studio Code [Integrated Terminal](https://code.visualstudio.com/docs/editor/integrated-terminal).
As such, you do not need anything else installed on your host machine!

#### pgAdmin

[`pgAdmin`](https://www.pgadmin.org/) can be accessed via [`localhost:8080`](http://localhost:8080). After signing in with the credentials defined in `docker-compose.yaml`, to connect to your Postgres container, set the "Host name/address" as `postgres`, and the "Username" as `root`. There is no need to set a password, as the Postgres container is running as `POSTGRES_HOST_AUTH_METHOD: trust`.

#### Extensions

`laravel-devcontainer` currently ships with the following extensions for Laravel development in Visual Studio Code:
Expand Down