Skip to content

jeremyabulencia/setting-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Setting-Up a Laravel Environment

Download and Install PHP (Non Thread Safe)

    https://windows.php.net/download/

Enabling pdo_mysql

    php -i | findstr "php.ini"
    $ php.exe -i | findstr "php.ini"
    Configuration File (php.ini) Path =>
    Loaded Configuration File => C:\php8\php.ini

php.ini

    uncomment
    ;extension=pdo_mysql

Download and Install composer

    https://getcomposer.org/download/

Download and Install Docker

    https://www.docker.com/get-started/

Download and Install NodeJs

    https://nodejs.org/en/download

Running MySQL database using Docker

docker-compose.yml

    version: "3.9"
    services:
    mysql:
        image: mariadb:10.8.3
        # Uncomment below when on Mac M1
        # platform: linux/arm64/v8
        command: --default-authentication-plugin=mysql_native_password
        restart: always
        environment:
        MYSQL_ROOT_PASSWORD: root
        ports:
        - 3306:3306
    adminer:
        image: adminer
        restart: always
        ports:
        - 8080:8080

run docker service

    docker compose up

Adding Mailpit

    mailpit:
        image: axllent/mailpit
        container_name: mailpit
        restart: always
        volumes:
        - ./data:/data
        ports:
        - 8025:8025
        - 1025:1025
        environment:
        MP_MAX_MESSAGES: 5000
        MP_DATA_FILE: /data/mailpit.db
        MP_SMTP_AUTH_ACCEPT_ANY: 1
        MP_SMTP_AUTH_ALLOW_INSECURE: 1

About

Setting Up PHP and Database via Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published