Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 973 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 973 Bytes

How to setup Laravel (PHP 8, Postgres, Nginx, Redis and etc) with Docker & WSL2

For detailed Instruction - i created an article

How to setup Laravel (PHP 8, Postgres, Nginx, Redis and etc) with Docker & WSL2

How to use ( Simple )

  • 1. git clone https://github.com/ndarproj/docker-laravel-php-postgres
  • 2. add your existing .env or you may the use default .env from laravel
  • --- docker db/redis/mail/nginx ports, app name and db username/password will depend on your ./src/.env file`*
  • 4. docker-compose --env-file ./src/.env up -d --build site

Exposed ports based from ./src/.env ( i will be using .env_example as a sample)

  • app_name - Laravel (APP_NAME)
  • nginx - :801 (NGINX_PORT)
  • pgsql - :33061 (DB_PORT)
  • php - :9000
  • redis - :63791 (REDIS_PORT)
  • mailhog - :10251 (MAIL_PORT)