version: "3.8"

services:
  redis:
    image: "redis:alpine"
    container_name: redis-server
    ports:
      - "6379:6379"

  backend:
    build: ./backend
    container_name: flask-backend
    ports:
      - "5000:5000"
    depends_on:
      - redis
    environment:
      - REDIS_HOST=redis
      - REDIS_PORT=6379
