summaryrefslogtreecommitdiff
path: root/compose.yaml
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-11-02 21:23:02 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-11-02 21:23:02 -0300
commit9e5e5da02b4a9704543e0efd7eb568b31a77a369 (patch)
treed5929d84620b4eaa87c63a82c8b70c3c4d63a6a2 /compose.yaml
parentc3a884f12c1d7b6bc286e14bf0f8af2d99dad542 (diff)
list locations
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml19
1 files changed, 13 insertions, 6 deletions
diff --git a/compose.yaml b/compose.yaml
index 9af60c6..8892fda 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -28,6 +28,7 @@ services:
context: ./mqtt_client/
networks:
- mosquitto
+ - database
depends_on:
- mosquitto
- postgres
@@ -35,9 +36,7 @@ services:
image: postgres:13
container_name: postgres
networks:
- - mosquitto
- ports:
- - "5432:5432"
+ - database
environment:
POSTGRES_PASSWORD: public
POSTGRES_USER: root
@@ -45,8 +44,6 @@ services:
volumes:
#- ${PWD}/database/init_scripts:/docker-entrypoint-initdb.d
- db_data:/var/lib/postgresql/data
-
-
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
@@ -56,9 +53,19 @@ services:
ports:
- "5050:80"
networks:
- - mosquitto
+ - database
+ depends_on:
+ - postgres
+ api:
+ build:
+ context: ./api/
+ networks:
+ - database
+ ports:
+ - "127.0.0.1:8000:80"
depends_on:
- postgres
+
networks:
mosquitto:
database: