diff options
| author | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 19:16:14 -0300 |
|---|---|---|
| committer | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 19:16:14 -0300 |
| commit | be7952f3585fe895a3309a19e14cd93f89c3ce1b (patch) | |
| tree | a5fc0ee9f964273879abcd6a17b96ac44eec9941 /compose.yaml | |
| parent | 4008253dfd2005da102f6da06389268ecef152f6 (diff) | |
| parent | 52a4fe2625b63683fcdcd74f704e49aa65cb0dd8 (diff) | |
Merge branch 'master' of https://github.com/Simplesmente-O-Grupo/iot-monitoring
Diffstat (limited to 'compose.yaml')
| -rw-r--r-- | compose.yaml | 32 |
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: |
