From 96a0a824ceb92f1a2749d96cb418491f1623c9fd Mon Sep 17 00:00:00 2001 From: Bruno Gastadi Date: Mon, 26 Feb 2024 07:13:11 -0300 Subject: [PATCH 1/4] feat: Postgres --- .env.dist | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.env.dist b/.env.dist index b9c9f8f..4233442 100644 --- a/.env.dist +++ b/.env.dist @@ -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="opencodeco@domain.com" +PGADMIN_PASSWORD="opencodeco" From 63aca19bd1ad9fe604ce86d558f5833c5c91b0b1 Mon Sep 17 00:00:00 2001 From: Bruno Gastadi Date: Mon, 26 Feb 2024 07:15:01 -0300 Subject: [PATCH 2/4] feat: Postgres --- postgres/docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 postgres/docker-compose.yml diff --git a/postgres/docker-compose.yml b/postgres/docker-compose.yml new file mode 100644 index 0000000..6594ea8 --- /dev/null +++ b/postgres/docker-compose.yml @@ -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 From 8c806849c4994635d56ca7fbfedf56b6e9734dcb Mon Sep 17 00:00:00 2001 From: Bruno Gastadi Date: Mon, 26 Feb 2024 07:18:19 -0300 Subject: [PATCH 3/4] feat: Postgres --- stack | 1 + 1 file changed, 1 insertion(+) diff --git a/stack b/stack index 2f01366..32e167d 100755 --- a/stack +++ b/stack @@ -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})" From 96d3a2844c0b75ab13d4d45fc707aacff9d0ba2d Mon Sep 17 00:00:00 2001 From: Bruno Gastadi Date: Mon, 26 Feb 2024 07:22:11 -0300 Subject: [PATCH 4/4] feat: Postgres --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 102ed9a..cadfadc 100644 --- a/README.md +++ b/README.md @@ -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) |