Skip to content

Mariyo/universal-php-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized PHP

Documentation

Requirements

  • docker (min 17.03.1-ce)
  • docker-compose (min 1.13.0)

Installation

Create .env from example .env.dist, if you prefer different parameters like port or PHP version.

chmod +x ops
./ops up

Stop

./ops down

Useful commands

# run PHP file
./ops php index.php

# get composer version
./ops bash composer --version

# start PHP built-in webserver, now you can open `localhost` on `PHP_SERVER_PORT` in browser,
# by default it is: http://localhost:9001
./ops php -S 0.0.0.0:9001

About

Universal PHP running in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published