Skip to content

Commit

Permalink
add pgadmin to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Feb 26, 2024
1 parent 7d3b1d2 commit 7e1291d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ export SPOTIFY_CLIENT_SECRET=XXXXXX
# [Optional] OpenAI API key for the chatgpt feature.
#
export OPENAI_API_KEY=XXXXXX

#
# [Optional] pgadmin support
#
export PGADMIN_MAIL=XXXXXX
export PGADMIN_PW=XXXXXX
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ services:
- crack_postgres
ports:
- "127.0.0.1:8000:8000"
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:latest
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PW}
ports:
- "127.0.0.1:5050:80"
restart: always
volumes:
pgdata:
external: true
Expand Down

0 comments on commit 7e1291d

Please sign in to comment.