All Projects β†’ theomessin β†’ laravel-devcontainer

theomessin / laravel-devcontainer

Licence: MIT license
πŸ‹ Fully-Dockerised Laravel development in Visual Studio Code

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to laravel-devcontainer

container
Custom containers for various usecases
Stars: ✭ 12 (-85%)
Mutual labels:  container, devcontainer
Vscode Dev Containers
A repository of development container definitions for the VS Code Remote - Containers extension and GitHub Codespaces
Stars: ✭ 2,715 (+3293.75%)
Mutual labels:  remote, devcontainer
Ko
Build and deploy Go applications on Kubernetes
Stars: ✭ 3,755 (+4593.75%)
Mutual labels:  container
remark-directive
remark plugin to support directives
Stars: ✭ 137 (+71.25%)
Mutual labels:  container
hybridnet
A CNI plugin, provides networking environment where overlay and underlay containers can run on the same node and have cluster-wide bidirectional network connectivity.
Stars: ✭ 188 (+135%)
Mutual labels:  container
docker-electrumx
Run an Electrum server with one command
Stars: ✭ 87 (+8.75%)
Mutual labels:  container
awesome-freelancer
θ‡ͺη”±θŒδΈšθ€…&θΏœη¨‹ε·₯δ½œθ€…&独立开发者&开源ε·₯δ½œθ€…@η”Ÿε­˜ζŒ‡ε—
Stars: ✭ 67 (-16.25%)
Mutual labels:  remote
Staticvec
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Stars: ✭ 236 (+195%)
Mutual labels:  container
PuTTY-ng
An improved multi-tabbed PuTTY with better user experience. This project is based on noddle1983's putty-nd.
Stars: ✭ 37 (-53.75%)
Mutual labels:  remote
docker eventer
A Docker container to notify about Docker events written in Python
Stars: ✭ 14 (-82.5%)
Mutual labels:  container
go-docker
Golang Docker Container Example
Stars: ✭ 39 (-51.25%)
Mutual labels:  container
addon-vscode-remote
VSCode Remote - Home Assistant Community Add-ons
Stars: ✭ 35 (-56.25%)
Mutual labels:  remote
di
πŸ‘ A flexible dependency injection container; It is an implementation of PSR-11
Stars: ✭ 20 (-75%)
Mutual labels:  container
dockerfilegraph
Visualize your multi-stage Dockerfiles
Stars: ✭ 55 (-31.25%)
Mutual labels:  container
pouchrobot
An AI robot to collaborate in any open source project on GitHub
Stars: ✭ 39 (-51.25%)
Mutual labels:  container
docker-java
Intro Level Lab for Docker Development for Java Developers
Stars: ✭ 34 (-57.5%)
Mutual labels:  container
Haconiwa
MRuby on Container / A Linux container runtime using mruby DSL for configuration, control and hooks
Stars: ✭ 247 (+208.75%)
Mutual labels:  container
filegrain
transport-agnostic, fine-grained content-addressable container image layout
Stars: ✭ 23 (-71.25%)
Mutual labels:  container
nginx-lua
Nginx 1.19+ with LUA support based on Alpine Linux, Amazon Linux, Debian, Fedora and Ubuntu.
Stars: ✭ 112 (+40%)
Mutual labels:  container
windows-container
Docker files for various Windows Container build
Stars: ✭ 30 (-62.5%)
Mutual labels:  container

Laravel Development Containers for Visual Studio Code

laravel-devcontainer is a simple configuration to support fully-dockerised development of Laravel applications using Visual Studio Code. Unlike Laravel Sail, laravel-devcontainer has been built so that the entire development experience is dockerised. The only requirements are:

Visual Studio Code will actually run inside a Docker container with php-cli as well as other development tools. Any Extensions will also run in the same container, meaning that intellisense will use the same php-cli configuration!

laravel-devcontainer currently ships with:

  • php:8.0-cli-alpine workspace with composer, pgsql, redis, and nodejs.
  • php:8.0-fpm-alpine container with pgsql and redis extensions.
  • nginx:1.21-alpine preconfigured for your Laravel application.
  • postgres:13-alpine preconfigured with the default Laravel credentials.
  • redis:6.2-alpine for caching, queues, sessions, etc.

Easy Installation

Using this configuration is quite simple. Download and place laravel-devcontainer in a .devcontainer folder with your Laravel Code. If starting a new project, you may create a new folder with just larave-devcontainer in your .devcontainer folder. You may then install Laravel using Composer (e.g. under example-app). You may then move the .devcontainer folder to your code folder (mv .devcontainer example-app) and use that!

Installing Using Git Submodules

Alternatively, you may use Git Submodules. Install the configuration by running

git submodule add https://github.com/theomessin/laravel-devcontainer .devcontainer

If you use this method, do not forget to install submodules when cloning:

git clone --recurse-submodules ...

Usage

Start Visual Studio Code (e.g. code example-app) and re-open in remote containers (Remote-Containers: Reopen in Container). This may take some time on the first use, as Docker initially downloads and builds the images. Eventually, Visual Studio Code will run inside the workspace container. Extensions and settings specified in devcontainer.json will be auto-configured!

Be sure to correctly configure your application .env to use the devcontainer postgres and redis. For example:

DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

You may then navigate to localhost on your local machine. Fingers crossed, you will see your Laravel application! Run any artisan or composer commands using the Visual Studio Code Integrated Terminal. As such, you do not need anything else installed on your host machine!

Extensions

laravel-devcontainer currently ships with the following extensions for Laravel development in Visual Studio Code:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].