version: '3.8'

services:
  web:
    build: .
    container_name: php_apache
    ports:
      - "8080:80"
    volumes:
      - .:/var/www/html
    depends_on:
      - redis

  redis:
    image: redis:alpine
    container_name: redis_cache
    command: ["redis-server", "--requirepass", ""]
    ports:
      - "6379:6379"
