/
hed1ad
/
CloudGuard_API_Security_Platform
Обзор
Документация
Войти
/
hed1ad
/
CloudGuard_API_Security_Platform
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
docker-compose.yml
69 строк
2 KB
hed1ad
Add Auth + Reg
08 ноя 2025, 23:28
08 ноя 2025, 23:28
28c30c5
Код
Авторство
О чём код?
services: postgres: image: postgres:15-alpine container_name: api-security-postgres environment: POSTGRES_DB: api_security POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./database/init.sql:/docker-entrypoint-initdb.d/init.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 api_gateway: build: ./backend/api_gateway container_name: api-security-gateway ports: - "8000:8000" env_file: - .env environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/api_security SCANNER_SERVICE_URL: http://scanner_service:8001 depends_on: postgres: condition: service_healthy volumes: - ./backend/api_gateway:/app restart: unless-stopped scanner_service: build: ./backend/scanner_service container_name: api-security-scanner ports: - "8001:8001" environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/api_security depends_on: postgres: condition: service_healthy volumes: - ./backend/scanner_service:/app extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped frontend: build: ./frontend container_name: api-security-frontend ports: - "3000:3000" environment: NEXT_PUBLIC_API_URL: http://localhost:8000/api/v1 depends_on: - api_gateway volumes: - ./frontend:/app - /app/node_modules - /app/.next restart: unless-stopped volumes: postgres_data: