Docker environment for Laravel based projects (uses only official images from docker hub)
MIT License
8.2.6
latest
latest
10.12.0
1.25.0
15.3
7.0.11
24
2.3
# Creates config for dev environment.
make env-dev
# Build dev environment.
make build
# Start dev environment.
make start
# Installs composer dependencies.
make composer-install
# Runs migrations.
make migrate
# Runs seeds.
make seed
# Available commands.
make help
# Open Laravel container.
make shell
# Install js packages and dependencies.
yarn install
# Build assets (it's works for prod too).
yarn build
# Runs dev mode.
yarn dev
Welcome: http://localhost.
Go to: http://localhost/admin/login
Login: admin@localhost
Password: password
Boilerplate uses GraphQL for API implementation.
GraphQL endpoint: http://localhost/graphql
GraphQL Playground: http://localhost/graphiql
Schema: graphql/schema.graphql
In order to enable Xdebug
Setting
-> PHP
-> Debug
. Click Validate
add select Local Web Server or Shared Folder
. Add public
in Path to create validation script
and run Validation
. Everything must be success.Break at first line in PHP scripts
in Debug section.Settings
-> PHP
-> Server
. Use path mappings for default server 0.0.0.0
. In Project File section specified the Absolute path on the server - /var/www/html
which corresponds to project root..run/remote.run.xml
..vscode/launch.json
.That's all.
In both cases XDebug helper need to be installed and enabled.
Customize the configuration you may in docker/php/dev/xdebug.ini
. Available only in dev
and test
environments.
# Run shell in container.
make shell-pgsql
# Show postgresql logs.
make logs-pgsql
docker/redis/redis.conf