diff --git a/backend/requirements-dev.txt b/backend/requirements-dev.txt new file mode 100644 index 0000000..6209da7 --- /dev/null +++ b/backend/requirements-dev.txt @@ -0,0 +1,14 @@ +fastapi==0.109.0 +uvicorn[standard]==0.27.0 +sqlalchemy[asyncio]==2.0.25 +asyncpg==0.29.0 +alembic==1.13.1 +pydantic==2.5.3 +pydantic-settings==2.1.0 +python-jose[cryptography]==3.3.0 +passlib[bcrypt]==1.7.4 +python-multipart==0.0.6 +httpx>=0.25.0 +pytest==7.4.4 +pytest-asyncio==0.23.3 +pytest-httpx==0.25.0 diff --git a/backend/requirements.txt b/backend/requirements.txt index 6209da7..8a5d4d6 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -9,6 +9,3 @@ python-jose[cryptography]==3.3.0 passlib[bcrypt]==1.7.4 python-multipart==0.0.6 httpx>=0.25.0 -pytest==7.4.4 -pytest-asyncio==0.23.3 -pytest-httpx==0.25.0 diff --git a/docker-compose.yml b/docker-compose.yml index 3733466..06a0b8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,12 +18,6 @@ services: timeout: 3s retries: 5 - redis: - image: redis:7-alpine - container_name: cmdb-redis - ports: - - "6379:6379" - backend: build: context: ./backend @@ -32,36 +26,22 @@ services: environment: DATABASE_URL: postgresql+asyncpg://cmdb:cmdb_secret@postgres:5432/cmdb JWT_SECRET: ${JWT_SECRET:-super-secret-change-me} - REDIS_URL: redis://redis:6379/0 - CORS_ORIGINS: '["http://localhost:3000","http://localhost:5173"]' + CORS_ORIGINS: '["http://localhost:3000","http://localhost:80"]' ports: - "8000:8000" depends_on: postgres: condition: service_healthy - redis: - condition: service_started frontend: build: context: ./frontend dockerfile: Dockerfile container_name: cmdb-frontend - ports: - - "3000:80" - depends_on: - - backend - - nginx: - image: nginx:alpine - container_name: cmdb-nginx ports: - "80:80" - volumes: - - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - backend - - frontend volumes: pgdata: