Skip to content

A setup for running a CakePHP 4+ application in Docker

Notifications You must be signed in to change notification settings

PhantomWatson/cakephp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is what I use to run CakePHP 4+ applications in Docker

Installation and use

  1. Copy the contents of this repository into /docker in your application
  2. Update the contents of /docker/.env to set your project name, hostname, IP addresses that don't overlap with any other currently-running containers, database credentials, etc.
  3. Run cd /path/to/docker && bash build.sh and debug any errors that you get when building the containers
  4. Open https://${HOST}:${APACHE_EXPOSED_PORT} (using the values you put into .env)

Troubleshooting

  • According to recent tinkering, you may need to manually CREATE DATABASE dbname; the application's database and manually GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'%' WITH GRANT OPTION;
    • To do: /docker/mysql/Dockerfile to ensure that this happens automatically

About

A setup for running a CakePHP 4+ application in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published