summaryrefslogtreecommitdiff
path: root/compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
index db32d4c..549379a 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -23,12 +23,44 @@ services:
environment:
MQTT_CLIENT_USER: ${MQTT_CLIENT_USER}
MQTT_CLIENT_PASSWORD: ${MQTT_CLIENT_PASSWORD}
+ DATABASE_URL: postgresql://root:public@postgres:5432/control_station
build:
context: ./mqtt_client/
networks:
- mosquitto
depends_on:
- mosquitto
+ postgres:
+ image: postgres:13
+ container_name: postgres
+ networks:
+ - mosquitto
+ ports:
+ - "5432:5432"
+ environment:
+ POSTGRES_PASSWORD: public
+ POSTGRES_USER: root
+ POSTGRES_DB: control_station
+ volumes:
+ #- ${PWD}/database/init_scripts:/docker-entrypoint-initdb.d
+ - db_data:/var/lib/postgresql/data
+
+ pgadmin:
+ image: dpage/pgadmin4
+ container_name: pgadmin
+ environment:
+ - PGADMIN_DEFAULT_EMAIL=admin@admin.com
+ - PGADMIN_DEFAULT_PASSWORD=admin
+ ports:
+ - "5050:80"
+ networks:
+ - mosquitto
+ depends_on:
+ - postgres
networks:
mosquitto:
+ database:
+
+volumes:
+ db_data: