This commit is contained in:
rafaeldpsilva
2025-12-20 00:31:34 +00:00
parent 7547e6b229
commit a84d3632da
2 changed files with 0 additions and 45 deletions

View File

@@ -1,33 +1,6 @@
version: "3.8" version: "3.8"
services: services:
# Database Services
mongodb:
image: mongo:5.0
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password123
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./init-mongo:/docker-entrypoint-initdb.d
networks:
- energy-network
redis:
image: redis:7-alpine
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- energy-network
# API Gateway # API Gateway
api-gateway: api-gateway:
build: build:
@@ -49,8 +22,6 @@ services:
- IOT_CONTROL_SERVICE_URL=http://iot-control-service:8006 - IOT_CONTROL_SERVICE_URL=http://iot-control-service:8006
- DATA_INGESTION_SERVICE_URL=http://data-ingestion-service:8008 - DATA_INGESTION_SERVICE_URL=http://data-ingestion-service:8008
depends_on: depends_on:
- mongodb
- redis
- token-service - token-service
- sensor-service - sensor-service
- data-ingestion-service - data-ingestion-service
@@ -210,22 +181,6 @@ services:
networks: networks:
- energy-network - energy-network
# Monitoring and Management
nginx:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/ssl:/etc/nginx/ssl
depends_on:
- api-gateway
networks:
- energy-network
networks: networks:
energy-network: energy-network:
driver: bridge driver: bridge

View File