Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
/ laravel-docker Public archive

Production-ready Docker image for Laravel 9 projects

License

Notifications You must be signed in to change notification settings

jkoop/laravel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Docker

A basic, general-purpose, production-ready docker image for running a Laravel site.

Warning

I abandoned this project in favour of ServerSideUp's images.

Usage

# /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