Quickly stand up a dev laravel environment using apache with functioning queues and schdules.
Use the environment var DEV to stop some prod caching and optimization.
Mount empty dir to /var/www/html to have new laravel project setup
| Version | Tags |
|---|---|
| Laravel v8.6.2 | :latest :8.6.2 8.6 6 |
| Env | Description |
|---|---|
| DEV | Stops some caching and optimization, can be any value |
| PUID | Sets UID for www-data to allow editing data |
| PGID | Sets GID for www-data to allow editing data |
version: '3'
services:
mariadb:
image: bitnami/mariadb:10.2-debian-10
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=user
- MARIADB_DATABASE=db
- MARIADB_PASSWORD=password
laravel:
tty: true
image: justjeffey/laravel
environment:
- DEV=true
- DB_HOST=mariadb
- DB_DATABASE=db
- DB_USERNAME=user
- DB_PASSWORD=password
- PUID=1000
- PGID=1000
depends_on:
- mariadb
ports:
- 80:80
volumes:
- laravel:/var/www/html
Content type
Image
Digest
Size
190.6 MB
Last updated
almost 5 years ago
docker pull justjeffey/laravel