Skip to content

Template repository to install docker with PHP container and Symfony Local Web Server

License

Notifications You must be signed in to change notification settings

burus86/skeleton-docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skeleton-docker-php

  1. About project
  2. Set up project
  3. Additional information
  4. Future improvements
  5. License

About project

Set up project

Prerequisites

Installation

Clone repository and move inside:

git clone https://github.com/burus86/skeleton-docker-php.git

cd skeleton-docker-php

Build and up all docker containers defined in docker/docker-compose.yml:

make docker-start

Execute project

Open in your favorite web browser the website http://localhost:8080/.

Captura

Additional information

Stop all docker containers defined in docker/docker-compose.yml:

make docker-stop

List of all docker containers created, with an optional parameter OPTIONS:

make docker-ps
make docker-ps OPTIONS=-as

Show logs for PHP docker container:

make docker-logs

Access bash for PHP docker container:

make docker-bash

Future improvements

  • Upgrade PHP to latest stable version: 8.2
  • Add database container: MySQL or PostgreSQL

License

This project is licensed under the MIT License - see the LICENSE file for details.