Giter Site home page Giter Site logo

readus-01 / simple-php-8-nginx-postgresql-redis-laravel-9 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from burakueda/nginx-php8-laravel9-postgres-pgadmin-redis-template

0.0 0.0 0.0 7 KB

Simple PHP 8, Nginx, PostgreSQL, Redis, Laravel 9 docker/composer template

Dockerfile 100.00%

simple-php-8-nginx-postgresql-redis-laravel-9's Introduction

Disclaimer

Hi there!
I am relatively new to Docker. I was searching for a Docker/Composer project template with PHP 8, Laravel 9, Nginx, Redis, Postgres and PgAdmin but couldn't find the exact setup I needed. So I tried and built one by myself. After a lot of tweaking, I finally got it working. So I am making it public in case anyone else needs this exact setup.

As I said, I am new to this and am sure you can find some redundant/unnecessary parts. Or it might not work at all in your particular environment. You can use it at your own risk.

What is included

  • PHP 8.2
  • Nginx
  • Redis
  • MailHog
  • Postgres
  • PgAdmin
  • Laravel 9

PHP extensions

  • gd
  • mbstring
  • pdo_pgsql
  • redis
  • intl
  • imagick

Usage

Clone the repository and enter the folder. Make necessary changes to docker-compose.yml file (Database settings etc.) and run

docker-compose build
docker-compose up -d

Creating Laravel project

Inside the project folder, run the below command. It will create your laravel project in the src folder.

docker-compose exec php composer create-project laravel/laravel=9 ./ --prefer-dist

Updating Composer and installing Node modules

Inside the project folder, run

docker-compose exec php composer update
docker-compose exec php npm install

simple-php-8-nginx-postgresql-redis-laravel-9's People

Contributors

burakueda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.