Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/damlys/phpdock
- Owner: damlys
- License: unlicense
- Created: 2019-07-30T07:54:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T12:15:57.000Z (over 2 years ago)
- Last Synced: 2023-03-05T07:47:53.401Z (almost 2 years ago)
- Topics: composer, docker, docker-compose, laravel, php, php-fpm, symfony, xdebug
- Language: Dockerfile
- Homepage:
- Size: 1.12 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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
```