Fix jwt-token

This commit is contained in:
2025-08-16 19:56:12 +02:00
parent 52fd44cb0f
commit 5d224a13d0
2 changed files with 17 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
- "5433:5432"
networks:
- drone-network
healthcheck:
@@ -32,7 +32,7 @@ services:
volumes:
- redis_data:/data
ports:
- "6379:6379"
- "6380:6379"
networks:
- drone-network
healthcheck:
@@ -75,7 +75,7 @@ services:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/api/health"]
test: ["CMD", "curl", "-f", "http://localhost:3002/api/health"]
interval: 30s
timeout: 10s
retries: 3
@@ -86,12 +86,12 @@ services:
context: ./client
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:3001/api
VITE_WS_URL: ws://localhost:3001
VITE_API_URL: http://localhost:3002/api
VITE_WS_URL: ws://localhost:3002
container_name: drone-detection-frontend
restart: unless-stopped
ports:
- "3000:80"
- "3001:80"
networks:
- drone-network
depends_on:
@@ -110,14 +110,14 @@ services:
container_name: drone-detection-simulator
restart: "no"
environment:
API_URL: http://backend:3001/api
API_URL: http://backend:3002/api
networks:
- drone-network
depends_on:
- backend
profiles:
- simulation
command: python drone_simulator.py --api-url http://backend:3001/api --devices 5 --duration 3600
command: python drone_simulator.py --api-url http://backend:3002/api --devices 5 --duration 3600
volumes:
postgres_data:

View File

@@ -15,7 +15,7 @@ services:
- postgres_data:/var/lib/postgresql/data
- ./server/scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
ports:
- "5432:5432"
- "5433:5432"
networks:
- drone-network
healthcheck:
@@ -33,7 +33,7 @@ services:
volumes:
- redis_data:/data
ports:
- "6379:6379"
- "6380:6379"
networks:
- drone-network
healthcheck:
@@ -63,9 +63,9 @@ services:
TWILIO_ACCOUNT_SID: ${TWILIO_ACCOUNT_SID}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
TWILIO_PHONE_NUMBER: ${TWILIO_PHONE_NUMBER}
CORS_ORIGIN: http://localhost:3000
CORS_ORIGIN: http://localhost:3001
ports:
- "3001:3001"
- "3002:3001"
volumes:
- ./server/logs:/app/logs
networks:
@@ -87,12 +87,12 @@ services:
context: ./client
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:3001/api
VITE_WS_URL: ws://localhost:3001
VITE_API_URL: http://localhost:3002/api
VITE_WS_URL: ws://localhost:3002
container_name: drone-detection-frontend
restart: unless-stopped
ports:
- "3000:80"
- "3001:80"
networks:
- drone-network
depends_on:
@@ -109,8 +109,8 @@ services:
container_name: drone-detection-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "8080:80"
- "8443:443"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf