fix: Docker Compose working configuration
Some checks failed
CI/CD - Build & Test / Backend Tests (push) Has been cancelled
CI/CD - Build & Test / Frontend Tests (push) Has been cancelled
CI/CD - Build & Test / Security Scans (push) Has been cancelled
CI/CD - Build & Test / Docker Build Test (push) Has been cancelled
CI/CD - Build & Test / Terraform Validate (push) Has been cancelled
Deploy to Production / Build & Test (push) Has been cancelled
Deploy to Production / Security Scan (push) Has been cancelled
Deploy to Production / Build Docker Images (push) Has been cancelled
Deploy to Production / Deploy to Staging (push) Has been cancelled
Deploy to Production / E2E Tests (push) Has been cancelled
Deploy to Production / Deploy to Production (push) Has been cancelled
E2E Tests / Run E2E Tests (push) Has been cancelled
E2E Tests / Visual Regression Tests (push) Has been cancelled
E2E Tests / Smoke Tests (push) Has been cancelled
Some checks failed
CI/CD - Build & Test / Backend Tests (push) Has been cancelled
CI/CD - Build & Test / Frontend Tests (push) Has been cancelled
CI/CD - Build & Test / Security Scans (push) Has been cancelled
CI/CD - Build & Test / Docker Build Test (push) Has been cancelled
CI/CD - Build & Test / Terraform Validate (push) Has been cancelled
Deploy to Production / Build & Test (push) Has been cancelled
Deploy to Production / Security Scan (push) Has been cancelled
Deploy to Production / Build Docker Images (push) Has been cancelled
Deploy to Production / Deploy to Staging (push) Has been cancelled
Deploy to Production / E2E Tests (push) Has been cancelled
Deploy to Production / Deploy to Production (push) Has been cancelled
E2E Tests / Run E2E Tests (push) Has been cancelled
E2E Tests / Visual Regression Tests (push) Has been cancelled
E2E Tests / Smoke Tests (push) Has been cancelled
Major fixes to Docker setup: - Fix frontend Dockerfile path (Dockerfile not Dockerfile.frontend) - Remove obsolete version attribute from docker-compose.yml - Add --legacy-peer-deps to npm ci for dependency resolution - Fix Celery commands to use uv run celery - Change frontend port from 3000 to 8888 (avoid conflicts) Services now starting (with some configuration issues to resolve): - PostgreSQL: Running on port 5432 - Redis: Running on port 6379 - Frontend: Running on port 8888 - Backend/Celery: Starting but having DB connection issues Known issues to fix: - Backend connecting to localhost instead of postgres service - Environment variables not properly passed to containers
This commit is contained in:
@@ -46,7 +46,7 @@ services:
|
|||||||
dockerfile: Dockerfile.backend
|
dockerfile: Dockerfile.backend
|
||||||
container_name: mockupaws-celery-worker
|
container_name: mockupaws-celery-worker
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: celery -A src.core.celery_app worker --loglevel=info --concurrency=4
|
command: uv run celery -A src.core.celery_app worker --loglevel=info --concurrency=4
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws
|
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws
|
||||||
REDIS_URL: redis://redis:6379/0
|
REDIS_URL: redis://redis:6379/0
|
||||||
@@ -69,7 +69,7 @@ services:
|
|||||||
dockerfile: Dockerfile.backend
|
dockerfile: Dockerfile.backend
|
||||||
container_name: mockupaws-celery-beat
|
container_name: mockupaws-celery-beat
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: celery -A src.core.celery_app beat --loglevel=info
|
command: uv run celery -A src.core.celery_app beat --loglevel=info
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws
|
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws
|
||||||
REDIS_URL: redis://redis:6379/0
|
REDIS_URL: redis://redis:6379/0
|
||||||
@@ -92,7 +92,7 @@ services:
|
|||||||
dockerfile: Dockerfile.backend
|
dockerfile: Dockerfile.backend
|
||||||
container_name: mockupaws-flower
|
container_name: mockupaws-flower
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: celery -A src.core.celery_app flower --port=5555 --url_prefix=flower
|
command: uv run celery -A src.core.celery_app flower --port=5555 --url_prefix=flower
|
||||||
environment:
|
environment:
|
||||||
CELERY_BROKER_URL: redis://redis:6379/1
|
CELERY_BROKER_URL: redis://redis:6379/1
|
||||||
CELERY_RESULT_BACKEND: redis://redis:6379/2
|
CELERY_RESULT_BACKEND: redis://redis:6379/2
|
||||||
@@ -150,7 +150,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
VITE_API_URL: http://localhost:8000
|
VITE_API_URL: http://localhost:8000
|
||||||
ports:
|
ports:
|
||||||
- "3000:80"
|
- "8888:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user