# Template for stress test master services
name: "stress-services"
services:
  redis:
    image: redis:7-alpine
    container_name: stress-redis
    restart: always
    ports:
      - "{{ redis_port }}:6379"
    command: redis-server --requirepass {{ vault_redis_password }}
    networks:
      - {{ docker_network_name }}

  minio:
    image: minio/minio:latest
    container_name: stress-minio
    restart: always
    ports:
      - "9000:9000" # API Port
      - "9001:9001" # Console Port
    volumes:
      - ./minio-data:/data
    environment:
      MINIO_ROOT_USER: "{{ vault_s3_access_key_id }}"
      MINIO_ROOT_PASSWORD: "{{ vault_s3_secret_access_key }}"
    command: server /data --console-address ":9001"
    networks:
      - {{ docker_network_name }}

  bgutil-provider:
    image: brainicism/bgutil-ytdlp-pot-provider
    container_name: bgutil-provider
    init: true
    ports:
      - "4416:4416"
    restart: unless-stopped
    networks:
      - {{ docker_network_name }}

networks:
  {{ docker_network_name }}:
    name: {{ docker_network_name }}
    external: true
