From 370d3014ebf95e0c422a3ea2b39d568d66eb326e Mon Sep 17 00:00:00 2001 From: Luiz Gustavo Monteiro Date: Mon, 20 Oct 2025 21:06:44 -0300 Subject: Postgres Conteiner Settings --- compose.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'compose.yaml') diff --git a/compose.yaml b/compose.yaml index db32d4c..21f3cea 100644 --- a/compose.yaml +++ b/compose.yaml @@ -30,5 +30,29 @@ services: depends_on: - mosquitto + + postgres: + image: postgres:13 + container_name: postgres + ports: + - 5432:5432 + environment: + POSTGRES_PASSWORD: public + POSTGRES_USER: root + POSTGRES_DB: control_station + volumes: + - $PWD/database/create-table.sql:/docker-entrypoint-initdb.d/init.sql + + + pgadmin: + image: dpage/pgadmin4 + container_name: pgadmin + environment: + - PGADMIN_DEFAULT_EMAIL=admin@admin.com + - PGADMIN_DEFAULT_PASSWORD=admin + ports: + - "5050:80" + depends_on: + - postgres networks: mosquitto: -- cgit v1.2.3