version: '3.8' services: postgres: image: postgres:15-alpine container_name: invoice-master-postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: invoice_master ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: invoice-master-redis ports: - "6379:6379" volumes: - redis_data:/data backend: build: context: ./backend dockerfile: Dockerfile container_name: invoice-master-backend environment: ASPNETCORE_ENVIRONMENT: Development ConnectionStrings__DefaultConnection: Host=postgres;Port=5432;Database=invoice_master;Username=postgres;Password=postgres ports: - "5000:8080" depends_on: postgres: condition: service_healthy volumes: - ./backend/src:/app/src frontend: build: context: ./frontend dockerfile: Dockerfile container_name: invoice-master-frontend environment: VITE_API_URL: http://localhost:5000/api/v1 ports: - "5173:5173" volumes: - ./frontend:/app - /app/node_modules volumes: postgres_data: redis_data: