Skip to content

rfdrake/cakephp3-mssql-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This Dockerfile builds a cakephp3 environment with the MSSQL drivers from Microsoft. It also includes sqlite3, Postgres and MySQL because you might need to access multiple database types from your application.

Instructions:

  1. docker build -t cakephp .
  2. docker run -v $PWD:/home/web -it cakephp composer create-project --prefer-dist cakephp/app testing
  3. edit testing/config/app.php and change the database driver..
  4. docker run -v $PWD:/home/web -p 8765:8765 -it cakephp testing/bin/cake server -H 0.0.0.0

If you want migrations (or want to install other plugins):

  1. docker run -v $PWD:/home/web -p 8765:8765 -it cakephp bash -c 'cd /home/web/testing; cakephp composer require cakephp/migrations "@stable"'

About

Dockerfile for cakephp3/mssql

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published