# Auto-generated by parallel-dev.sh - DO NOT EDIT
# Instance: dev3 | Web: 8083 | Redis: 6383

services:
  web:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        PHP_VERSION: "8.3"
    image: buyerkiosk-parallel:latest
    container_name: bk-parallel-dev3-web
    ports:
      - "8083:80"
    volumes:
      - ./public_html:/var/www/html/public_html
      - ./userfrosting:/var/www/html/userfrosting
      - ./.env:/var/www/html/.env:ro
      - ./logs:/var/www/html/logs
      - ./test.sh:/var/www/html/test.sh:ro
      - ./docker:/var/www/html/docker:ro
    environment:
      - DB_HOST=host.docker.internal
      - DB_USER=kiosk_db
      - DB_PASS=tKXyNpDGqPc7SxQA
      - DB_NAME=kiosk_buykiosk
      - DB_PREFIX=resaleki_
      - DB_TEST_NAME=kiosk_test
      - BUYDB_NAME=kiosk_buys
      - USERSDB_NAME=kiosk_users
      - CONTACTDB_NAME=contactNumbers
      - REDIS_URL=tcp://redis:6379
      - DEV=1
      - APP_ENV=development
      - HOME_DIR=/var/www/html
      - LOG_DIR=/var/www/html/logs/
      - COMPOSER_IGNORE_PLATFORM=1
    depends_on:
      redis:
        condition: service_started
    extra_hosts:
      - "host.docker.internal:host-gateway"

  redis:
    image: redis:7-alpine
    container_name: bk-parallel-dev3-redis
    ports:
      - "6383:6379"
    command: redis-server --appendonly yes
    volumes:
      - redis_data:/data

volumes:
  redis_data:
    driver: local
