Defines a PHP container for Baton.
Provides a docker-compose.yml file that spins up a MySQL database and the app container that waits for the database:
docker-compose up
The current version tries to install Composer dependencies. But it seems as if several private packages are referenced.
When the dependencies have been installed successfully via compose install, the PHP version in the container is printed via php -v. This should be replaced by the command that starts the Baton server in the foreground.
Possible improvements:
When mounted on Linux, dependency files are installed as root user.
The app (runtime) container contains Composer and its required tools. The image could be smaller as Composer is only needed at build time.
Defines a PHP container for Baton. Provides a
docker-compose.yml
file that spins up a MySQL database and the app container that waits for the database:The current version tries to install Composer dependencies. But it seems as if several private packages are referenced. When the dependencies have been installed successfully via
compose install
, the PHP version in the container is printed viaphp -v
. This should be replaced by the command that starts the Baton server in the foreground.Possible improvements:
root
user.