name: pingcap-support-copilot-dev

services:
  backend:
    build:
      dockerfile: Dockerfile
      args:
        BUILDKIT_INLINE_CACHE: 1
    ports:
      - "8001:80"
    env_file:
      - .env
    volumes:
      - ./data:/shared/data
    depends_on:
      - redis

  background:
    build:
      dockerfile: Dockerfile
      args:
        BUILDKIT_INLINE_CACHE: 1
    ports:
      - "5556:5555"
    env_file:
      - .env
    volumes:
      - ./data:/shared/data
    command: /usr/bin/supervisord
    depends_on:
      - redis

  redis:
    image: redis:6.0.16
    volumes:
      - ./redis-data:/data
    command: ["redis-server", "--loglevel", "warning"]
