Skip to content

kknoer/docker-php-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Docker PHP Base

Setup

Setup project config:

  • Swap {db_name} for your projects database name in the docker-composer.yml file.

Build the machine: docker-compose up --build

Machine Management

Start the machine: docker-compose start

Stop the machine: docker-compose stop

SSH into the machine: docker exec -it {project_dir_name}_1 /bin/bash

Laravel Specific

Run migrations: docker-compose exec app php artisan migrate

Re-build database and seed (all data removed): docker-compose exec app php artisan migrate:fresh --seed

View App

Visit: http://localhost:8080

TODO

- [ ] Add support for custom domains
- [ ] Add support for SSL
- [ ] Add support for Apache

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published