ServD - a Docker PHP development environment heavily inspired by Laravel Valet and Laradock

Last update: May 13, 2022

ServD

Stable Build CI Status Code Coverage

ServD is a Docker PHP development environment heavily inspired by Laravel Valet and Laradock, it supports multiple projects within a working directory and primarily runs on [Alpine Linux](https://alpinelinux.org/).

In its current form, it installs the majority of PHP Extensions available, including xdebug which currently adds slower performance than expected. This will change and these extensions will be able to be toggled in a future release.

It offers PHP, Node.js, Database Software, Elasticsearch and PHP Composer version selection making it easy to change the environment to suit your needs.

Installation

Install via composer globally by running composer global require clntdev/servd - once this has finished type servd into the CLI and ensure it returns a list of commands.

  • Run the servd install command to setup required services and generate the .servd folder which will be located within the user home directory.
  • Run the servd start command after completing the installation steps, this will pull/build images and then start up the configured services.

Commands

List of commands:

servd install

  • Creates sqlite database
  • Prompt for preferred options such as PHP version/Node Version and Composer Version
  • Prompt for confirmation of working directory, choose current directory or full path can be specified

servd start

  • Start docker containers

servd stop

  • Stop docker containers

servd restart

  • Restart docker containers
  • Rebuild docker images with optional --rebuild flag.

servd rebuild

  • Rebuild docker containers
  • Update images with optional --update flag.
  • Rebuild/Update a specific container by specifying name as an argument: servd rebuild mysql.

servd configure

  • Regenerates configuration files and directory structures.

servd use x.x

  • Stops containers
  • Switch PHP version to specified (7.4, 8.0, 8.1 supported)
  • Rebuilds configuration and docker containers
  • Starts docker containers

servd secure

  • Generates certificates and configures the current project for HTTPS, rebuilding config files and restarting services.
  • Note: You will need to ensure the created servdCA.crt CA is trusted by your machine.

servd unsecure

  • Removes existing certificate files for a project and marks it as non secure, rebuilding config files and restarting services.

servd secure:trust

  • macOS (requires sudo) - this command will attempt to add the CA certificate generated to the system.
  • Linux & Windows Users - you will need to manually add the servdCA.crt certificate authority file to your computer's certificate store.

Note for Firefox users: You may need to trust the servdCA.crt file manually by importing it into Firefox's own certificate store (if site is secure in OS browser but not in Firefox then this is likely the reason why).

servd park

  • Adds/Changes the project directory to the current directory

servd run "{command}"

  • Run given command in docker container using current directory name as project directory name, remember to wrap command in quotes if more than one word i.e. servd run "php artisan cache:clear"

servd cli {container(optional)}

  • Open an interactive shell into the given container or the servd_core container by default if none specified.

Supported Drivers

  • Laravel
  • Wordpress
  • Drupal
  • GenericHtml (basic config)
  • GenericPhp (basic config with php-fpm)

Other

Built with Laravel Zero.

GitHub

https://github.com/clnt/servd
You might also like...

A modern Docker LAMP stack and MEAN stack for local development

A modern Docker LAMP stack and MEAN stack for local development

The Devilbox Usage | Architecture | Community | Features | Intranet | Screenshots | Contributing | Logos | License Support for valid https out of the

Aug 14, 2022

Oxygen Builder's better workflow and environment

Oxygen Builder's better workflow and environment Built with ❤️ Official Website | Documentation | Change Log Supporting Artifact is an open source pro

Jun 9, 2022

This is a dockerized environment for testing and developing things on the fatfree-core.

This is a dockerized environment for testing and developing things on the fatfree-core.

F3 development bench This is a dockerized environment for testing and developing things on the fatfree-core. It uses Docker to spin up multiple contai

Jul 12, 2022

Laravel 5 with Dockerized Gulp, PHP-FPM, MySQL and nginx using docker-compose

docker-laravel Laravel 5 with Dockerized PHP-FPM, MySQL and nginx using docker-compose Usage Get Composer docker-compose run --rm phpnginx curl -O htt

Feb 8, 2022

A package that allows you to generate simple and fast Docker configurations for your Laravel application!

A package that allows you to generate simple and fast Docker configurations for your Laravel application!

Dec 23, 2021

Docker with PHP 7.4 fpm, Nginx, Composer, PhpUnit and MaridaDB

Clean Docker with PHP Docker with PHP 7.4 fpm, Nginx, Composer, PhpUnit and MariaDB Starting app docker-compose up -d Main page

Aug 15, 2022

Docker-based workflow management system for Laravel

DevOption Workflows Workflows is a Docker-based workflow management system for Laravel applications. Installation You can install the package via comp

Jan 5, 2022

Up and running with small Docker environments

Up and running with small Docker environments

Vessel Up and running with small Docker dev environments. Documentation Full documentation can be found at https://vessel.shippingdocker.com. Install

Aug 4, 2022

Runs a PHP-based startpage in Docker

Runs a PHP-based startpage in Docker

docker-php-startpage Runs a PHP-based startpage in Docker Source code: GitHub Docker container: Docker Hub Image base: PHP Init system: N/A Applicatio

Jun 30, 2022
Demo of how you can run your Laravel app with Docker Compose. Look at docker-compose.yml and the docker folder. The rest is just a clean Laravel + Horizon install.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Oct 22, 2021
Full PHP development environment for Docker.
Full PHP development environment for Docker.

Full PHP development environment based on Docker. Use Docker First - Learn About It Later! Join Us Awesome People Laradock is an MIT-licensed open sou

Aug 15, 2022
A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

Aug 11, 2022
Shopware 6 app boilerplate + Symfony backend + Dockware docker dev environment 💙

Shopware 6 app boilerplate with Symfony backend This boilerplate template can be used to get up and running with a docker-based dev setup for Shopware

Jul 29, 2022
Quickly deploy a seedbox with self-hosted services and a web portal using Docker and docker-compose.
Quickly deploy a seedbox with self-hosted services and a web portal using Docker and docker-compose.

Seedbox Quickly deploy and configure a seedbox with self-hosted services and a web portal using Docker and a single docker-compose.yml file. Screensho

Jun 6, 2022
Docker Shortie, simplifying calls to CLI commands inside docker containers.

What is DockTie Is a simple wrapper script for commands inside docker container(s). So for instance, what you would normally run as: docker-compo

Mar 31, 2022
Blazing fast macOS PHP development environment
Blazing fast macOS PHP development environment

Introduction Valet+ is a development environment for macOS. No Vagrant, no Docker, no /etc/hosts file. Go here for the valet+ documentation. Credits T

Aug 11, 2022
DDEV-Local: a local PHP development environment system
DDEV-Local: a local PHP development environment system

ddev ddev is an open source tool that makes it simple to get local PHP development environments up and running in minutes. It's powerful and flexible

Aug 16, 2022
Stacker - The environment for local web development, ready for use.
Stacker - The environment for local web development, ready for use.

Introduction English 简体中文 Why stacker? Stacker - This is a local environment for web development with everything you need. What is its benefit? You do

Apr 11, 2022
Docker Containers for simple Laravel development.
Docker Containers for simple Laravel development.

Docker containers of Laravel development. Docker Containers for simple Laravel development. Prerequisites This package only works for Linux users righ

May 19, 2022