- Created React application with TypeScript and Material-UI - Implemented dashboard with service health monitoring - Added Services and Users management pages - Configured Nginx as reverse proxy to backend - Successfully integrated frontend with Console backend 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
97 lines
2.0 KiB
YAML
97 lines
2.0 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
console-frontend:
|
|
build:
|
|
context: ./console/frontend
|
|
dockerfile: Dockerfile
|
|
container_name: site11_console_frontend
|
|
ports:
|
|
- "3000:80"
|
|
networks:
|
|
- site11_network
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- console-backend
|
|
|
|
console-backend:
|
|
build:
|
|
context: ./console/backend
|
|
dockerfile: Dockerfile
|
|
container_name: site11_console_backend
|
|
ports:
|
|
- "8011:8000"
|
|
environment:
|
|
- ENV=development
|
|
- PORT=8000
|
|
- USERS_SERVICE_URL=http://users-backend:8000
|
|
volumes:
|
|
- ./console/backend:/app
|
|
networks:
|
|
- site11_network
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- users-backend
|
|
|
|
users-backend:
|
|
build:
|
|
context: ./services/users/backend
|
|
dockerfile: Dockerfile
|
|
container_name: site11_users_backend
|
|
environment:
|
|
- ENV=development
|
|
- PORT=8000
|
|
- MONGODB_URL=mongodb://mongodb:27017
|
|
- DB_NAME=users_db
|
|
volumes:
|
|
- ./services/users/backend:/app
|
|
networks:
|
|
- site11_network
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mongodb
|
|
|
|
mongodb:
|
|
image: mongo:7.0
|
|
container_name: site11_mongodb
|
|
environment:
|
|
- MONGO_INITDB_DATABASE=site11_db
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- mongodb_data:/data/db
|
|
- mongodb_config:/data/configdb
|
|
networks:
|
|
- site11_network
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: site11_redis
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- site11_network
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
site11_network:
|
|
driver: bridge
|
|
name: site11_network
|
|
|
|
volumes:
|
|
mongodb_data:
|
|
mongodb_config:
|
|
redis_data: |