version: '3.8'
services:
  web:
    build: .
    ports: ["8080:80"]
    depends_on: [redis]
  redis:
    image: redis:alpine
    container_name: redis_cache
    command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
    volumes:
      - ./redis.conf:/usr/local/etc/redis/redis.conf
    ports: ["6379:6379"]
