Skip to content

Commit 9b6f938

Browse files
committed
docs: docker for dev
1 parent 92e820b commit 9b6f938

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
# Laravel Docker
22

33
[![codecov](https://codecov.io/gh/laravel-fans/laravel-docker/branch/main/graph/badge.svg)](https://codecov.io/gh/laravel-fans/laravel-docker)
4+
[![Packagist Downloads](https://img.shields.io/packagist/dt/laravel-fans/docker)](https://packagist.org/packages/laravel-fans/docker)
5+
[![Docker Pulls](https://img.shields.io/docker/pulls/laravelfans/laravel)](https://hub.docker.com/r/laravelfans/laravel)
46
[![Laravel 10](https://github.com/laravel-fans/laravel-docker/workflows/Laravel%2010/badge.svg)](https://github.com/laravel-fans/laravel-docker/actions/workflows/laravel-10.yml)
57
[![Laravel 11](https://github.com/laravel-fans/laravel-docker/workflows/Laravel%2011/badge.svg)](https://github.com/laravel-fans/laravel-docker/actions/workflows/laravel-11.yml)
68

7-
Full Laravel production environment for Docker.
9+
Full Laravel production and development environment for Docker, based on the official image `php:apache`.
810

9-
## install
11+
## development or testing
1012

11-
Run in your Laravel project:
13+
It is recommended to use this docker image in your testing environment(amd64 or arm64, support Apple silicon), it contains git/jq/vim/nodejs/npm, and php extensions: gd/mysql/pgsql/redis/xdebug.
14+
15+
```shell
16+
docker run -p 8000:80 -v $(pwd):/var/www/laravel laravelfans/laravel:11-dev
17+
docker run -v $(pwd):/var/www/laravel -it laravelfans/laravel:10-dev bash
18+
```
19+
20+
## production
21+
22+
It is recommended to use `Dockerfile` to build your own docker image in your production environment.
1223

1324
```shell
1425
composer require --dev laravel-fans/docker
1526
php artisan docker:publish
1627
```
1728

18-
## build
19-
2029
Then you will find `Dockerfile` in your project, so you can build:
2130

2231
```

0 commit comments

Comments
 (0)