/med-clinic

Software product that would like to automate the dispensary processes of outpatient polyclinic and stationary dispensaries

Primary LanguagePHP

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:

Starting Docker Compose

Checkout the repository or download the sources.

Simply run docker-compose up -d and you are done.

Nginx will be available on localhost:80 and PostgreSQL on localhost:5432.

Using Composer

docker-compose run composer <cmd>

Where cmd is any of the available composer command.

Using PostgreSQL

Default connection:

docker-compose exec db psql -U postgres

Using .env file default parameters:

docker-compose exec db psql -U dbuser dbname

If you want to connect to the DB from another container (from the php one for instance), the host will be the service name: db.

Using PHP

You can execute any command on the php container as you would do on any docker-compose container:

docker-compose exec php php -v

Configuring PHP

To change PHP's configuration edit .docker/php/php.ini. Same goes for .docker/php/xdebug.ini.

Clear cache

docker-compose rm --all
docker-compose pull
docker-compose build --no-cache
docker-compose up -d --force-recreate