Fix jwt-token
This commit is contained in:
@@ -41,6 +41,21 @@ docker-compose ps
|
||||
- **Database**: localhost:5432
|
||||
- **Redis**: localhost:6379
|
||||
|
||||
### Testing Docker Builds
|
||||
|
||||
Before running the full docker-compose setup, you can test individual container builds:
|
||||
|
||||
```bash
|
||||
# Test all builds
|
||||
./test-docker-builds.sh # Linux/Mac
|
||||
test-docker-builds.bat # Windows
|
||||
|
||||
# Test individual builds
|
||||
docker build -t test-backend ./server
|
||||
docker build -t test-frontend ./client
|
||||
docker build -f docker/simulator/Dockerfile -t test-simulator .
|
||||
```
|
||||
|
||||
## Service Architecture
|
||||
|
||||
```
|
||||
@@ -220,9 +235,15 @@ docker-compose up -d
|
||||
|
||||
#### 2. Frontend Build Issues
|
||||
```bash
|
||||
# If npm ci fails (missing package-lock.json)
|
||||
# The Dockerfile has been updated to use npm install instead
|
||||
|
||||
# Rebuild frontend
|
||||
docker-compose build --no-cache frontend
|
||||
|
||||
# Test frontend build individually
|
||||
docker build -t test-frontend ./client
|
||||
|
||||
# Check build logs
|
||||
docker-compose logs frontend
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user