Skip to content

alexberce/docker-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker PHP Environment

A Docker PHP development environment that facilitates running PHP applications on Docker

Prerequisites

  • git
  • composer
  • docker
  • docker-compose

Installation

1. Clone the repository
$ git clone https://github.com/alexberce/docker-env.git
2. Create the .env file
$ cp .env-example .env

Change the variables from the .env file to match your configuration

3. Create the containers
$ docker-compose up
4. Install composer dependencies
$ cd app && composer install

Commands:

List all containers for the project
    $ docker-compose ps
Stop all running containers
    $ docker-compose stop        
Stop a single container
    $ docker-compose stop {container-name}
Delete all existing containers
    $ docker-compose down
Run commands inside a container
    $ docker-compose exec {container-name} bash

Note:

Apache will serve the files from /app/public directory

About

Docker environment for PHP applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy