Giter Site home page Giter Site logo

docker-php's Introduction

はじめに

このリポジトリはPHPの最低限の動作環境をDockerで構築するためのコードを保管する目的で使用します。 2024/02/12現在。最低限のPHP動作を確認していますが、DB周りの確認はできていません。

少しずつ動作確認、環境を整備していく予定です。

使用方法

  1. PHPのコード設置箇所を作成

     mkdir -p src
  2. srcディレクトリ直下にindex.???を作成する(アクセス時の最初に表示されるページ)
    ???の部分をhtmlにするかphpにするかは任せる。
    ただしphpにする場合は以下ファイルの設定を修正すること。

     infra/docker/nginx/default.conf
    
     #省略
    
     server {
         listen 80;
         listen [::]:80;
         # 省略
    
         # アクセス時に開かれるファイル名の設定
         # index index.html;
         index index.php; # .phpに変更
    
         # 省略
     }
    
  3. makeコマンドで事前に書かれた設定値を読み込ませてPHP環境を構築する

     make create-project
  4. http://localhostにアクセスする

docker-php's People

Contributors

maro-webengineer avatar

Watchers

 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.