services:
  web:
    build: .
    restart: unless-stopped
    ports:
      - "8001:80"
    volumes:
      - "./VoidCat/appsettings.compose.json:/app/appsettings.json:ro"
      - "./data/web:/app/data"
    depends_on:
      - postgres
      - redis
      - clamav
      - prometheus
  redis:
    image: "redis:alpine"
    restart: unless-stopped
    volumes:
      - "./data/redis:/data"
  postgres:
    image: "postgres:16"
    restart: unless-stopped
    volumes:
      - "./data/postgres:/var/lib/postgresql/data"
    environment:
      - "POSTGRES_DB=void"
      - "POSTGRES_HOST_AUTH_METHOD=trust"
  clamav:
    image: "clamav/clamav"
    restart: unless-stopped
    volumes:
      - "./data/clamav:/var/lib/clamav"
  prometheus:
    image: bitnami/prometheus
    restart: unless-stopped
    volumes:
      - "./data/prometheus:/opt/bitnami/prometheus/data"
      - "./prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml:ro"