This project is intented to be a skeleton for PHP based services
This project is intented to be a skeleton for PHP based services.
$ docker build -t crakmedia/skeleton-service:latest . $ cp docker-compose.yml.dist docker-compose.yml $ docker-compose run shell $ composer install $ docker-compose up
Should over need to override the default configuratio for any of the services runing within the container, you can add docker volumes to your docker-compose.yml. As an example, say you need to modify the default nginx configuration provided by the base image. In this case you just need to add a new voluming mapping under the volumes section in your docker-compose.yml file:
volumes: ... existing mappings ... - /path/to/nginx.conf:/etc/nginx/nginx.conf
The following is a list of files/directories added in the base image, which could be overriden:
- /etc/nginx/conf.d - /etc/nginx/nginx.conf - /etc/php.ini - /etc/php-fpm.conf - /etc/php-fpm.d
Of course you can always use docker volumes to override any file/directory within a running container. See here for more details.
$ docker-compose run shell $ php app/console migrations:migrate
First, go in your container shell
$ docker-compose run shell
tests/config.yml and configure your test database
$ cp tests/config.yml.dist tests/config.yml
$ npm install apidoc -g
$ apidoc -i src/Controller/ -o doc
doc/index.html with your browser.
In order to monitor metrics of application, you should use $app['monitor']. For more information about how to use, see documentation of the client