Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/damlys/phpdock

Docker starter for PHP projects
https://github.com/damlys/phpdock

composer docker docker-compose laravel php php-fpm symfony xdebug

Last synced: about 2 months ago
JSON representation

Docker starter for PHP projects

Awesome Lists containing this project

README

        

# PHPdock

Docker starter for PHP projects

## Requirements

```shell
$ docker --version
Docker version 20.10.17, build 100c701
$ docker-compose --version
Docker Compose version v2.6.1
```

## 101

```shell
$ ln -s ./.devcontainer/docker-compose.override.yml .
$ docker-compose build
$ docker-compose up --detach
$ docker-compose exec app bash -ce "
composer install
composer run-script build
chown -R $(id -u):$(id -g) .
composer run-script vulnerability-scan
composer run-script format-check
composer run-script lint-check
composer run-script unit-tests
composer run-script http-api-tests
"
$ docker-compose exec app bash
```

Go to [http://127.0.0.1:38080](http://127.0.0.1:38080)

```shell
$ docker-compose down --remove-orphans
```