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

feat: Postgres #9

Open
wants to merge 4 commits into
base: main
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
6 changes: 6 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ RABBITMQ_UI_PORT=8038

REDIS_PORT=6379
REDISINSIGHT_PORT=8032

POSTGRES_PORT=5432
POSTGRES_PASSWORD=opencodeco
PGADMIN_PORT=8034
PGADMIN_EMAIL="[email protected]"
PGADMIN_PASSWORD="opencodeco"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
| `stack mysql`| MySQL & phpMyAdmin (http://localhost:8031) |
| `stack redis` | Redis & RedisInsight (http://localhost:8032) |
| `stack mongo` | MongoDB & Mongo Express (http://localhost:8033) |
| `stack postgres` | PostgreSQL & pgAdmin (http://localhost:8034) |
| `stack kafka` | Kafka and UI for Apache Kafka (http://localhost:8037) |
| `stack rabbitmq` | RabbitMQ & Management Plugin (http://localhost:8038) |
| `stack aws` | AWS services via LocalStack (http://localhost:4566) |
Expand Down
32 changes: 32 additions & 0 deletions postgres/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3'
services:
opencodeco-postgres:
container_name: opencodeco-postgres
image: postgres:latest
restart: always
ports:
- ${POSTGRES_PORT}:5432
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- opencodeco-postgres:/var/lib/postgresql/data

opencodeco-pgadmin:
container_name: opencodeco-pgadmin
image: dpage/pgadmin4:latest
ports:
- ${PGADMIN_PORT}:80
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
depends_on:
- opencodeco-postgres

networks:
default:
name: opencodeco
external: true

volumes:
opencodeco-postgres:
name: opencodeco-postgres
1 change: 1 addition & 0 deletions stack
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if [ $# -eq 0 ] || [ "help" = "${1}" ]; then
echo ""
echo "Components:"
echo " mysql MySQL & phpMyAdmin (http://localhost:${PHPMYADMIN_PORT})"
echo " postgres PostgreSQL & pgAdmin (http://localhost:${PGADMIN_PORT})"
echo " redis Redis & RedisInsight (http://localhost:${REDISINSIGHT_PORT})"
echo " mongo MongoDB & Mongo Express (http://localhost:${MONGO_EXPRESS_PORT})"
echo " kafka Kafka and UI for Apache Kafka (http://localhost:${KAFKA_UI_PORT})"
Expand Down