services: redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis-data:/data command: redis-server --save 60 1 --loglevel warning healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 3 rabbitmq: image: rabbitmq # ports: # - "127.0.0.1:5672:5672" volumes: - rabbitmq_data:/var/lib/rabbitmq restart: unless-stopped healthcheck: test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"] interval: 10s timeout: 5s retries: 5 start_period: 10s backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" volumes: - ./backend/.env:/app/.env:ro environment: - ENV_MODE=local - REDIS_HOST=redis - REDIS_PORT=6379 - REDIS_PASSWORD= - REDIS_SSL=False depends_on: redis: condition: service_healthy rabbitmq: condition: service_healthy frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "3000:3000" volumes: - ./frontend/.env.local:/app/.env.local:ro environment: - NODE_ENV=production command: ["npm", "run", "start"] depends_on: - backend volumes: redis-data: rabbitmq_data: