version: "3.7"
services:
    php:
        build: "./docker"
        container_name: "server-php-rotinas"
        ports:
            - "8080:80"
            - "8443:443"
        volumes:
            - .:/var/www/html
            - ./storage/logs/apache2:/var/log/httpd
        dns:
            - 8.8.8.8
            - 1.1.1.1
        extra_hosts:
            - "host.docker.internal:host-gateway"

    redis:
        image: redis:7-alpine
        container_name: redis-rotinas
        ports:
            - "6379:6379"
        command: ["redis-server", "--requirepass", ""]
        volumes:
            - redis_data:/data

volumes:
    redis_data:
