Fix jwt-token
This commit is contained in:
@@ -173,6 +173,39 @@ services:
|
||||
- simulation
|
||||
command: python drone_simulator.py --devices 5 --duration 3600
|
||||
|
||||
# Data Retention Service (Microservice)
|
||||
data-retention:
|
||||
build:
|
||||
context: ./data-retention-service
|
||||
dockerfile: Dockerfile
|
||||
container_name: drone-detection-data-retention
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_NAME: ${DB_NAME:-drone_detection}
|
||||
DB_USER: ${DB_USER:-postgres}
|
||||
DB_PASSWORD: ${DB_PASSWORD:-your_secure_password}
|
||||
NODE_ENV: ${NODE_ENV:-production}
|
||||
IMMEDIATE_CLEANUP: ${IMMEDIATE_CLEANUP:-false}
|
||||
networks:
|
||||
- drone-network
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "healthcheck.js"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
# Resource limits for lightweight container
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
reservations:
|
||||
memory: 64M
|
||||
|
||||
# Health Probe Simulator (Continuous Device Heartbeats)
|
||||
healthprobe:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user