Production-ready Docker image for Laravel 9 projects
10K+
[GitHub] A basic, general-purpose, production-ready docker image for running a Laravel site.
Warning
I abandoned this project in favour of [ServerSideUp's images](https://serversideup.net/open-source/docker-php/).
# /path/to/laravel/base/docker-compose.prod.yml
version: "3"
services:
app:
image: jkoop/laravel
restart: unless-stopped
volumes:
- .:/app
db:
image: mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- ./db-data:/var/lib/mysql
# and whatever other services you have
Content type
Image
Digest
sha256:2f0cd6e2a…
Size
177.4 MB
Last updated
over 3 years ago
docker pull jkoop/laravel