https://github.com/jasonheecs/laravel-docker-compose
A docker-compose setup for Laravel applications
https://github.com/jasonheecs/laravel-docker-compose
docker docker-compose laravel
Last synced: 3 months ago
JSON representation
A docker-compose setup for Laravel applications
- Host: GitHub
- URL: https://github.com/jasonheecs/laravel-docker-compose
- Owner: jasonheecs
- License: mit
- Created: 2019-12-28T21:37:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T13:31:16.000Z (almost 6 years ago)
- Last Synced: 2025-07-27T10:36:39.779Z (11 months ago)
- Topics: docker, docker-compose, laravel
- Language: Ruby
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Docker Compose
[![Build Status][travis-badge]][travis-link]
A docker compose setup meant for Laravel applications. This setup will create a php container, an nginx container and a PostgresSQL container
## Usage
1) Clone this repo:
```
git clone https://github.com/jasonheecs/laravel-docker-compose.git
cd laravel-docker-compose
```
2) Run `make build`
A Laravel app will be created in your `src` folder
## Setting up XDebug on PHPStorm
## Rename .env.example to .env
```
NETWORK_NAME=custom-network
XDEBUG_CONFIG=remote_host=host.docker.internal
```
Ensure you have the right `remote_host` for XDebug specified. You may need to modify the config if host.docker.internal does not work for your OS.
### Add a Docker server

### Set DBGp Proxy settings

### Create a Debug configuration

### Enable listening for PHP Debug Connections

## Testing
Testing is done via Rspec
To run the tests:
```bash
gem install bundler
bundle install
bundle exec rspec
```
Refer to the [travis.yml](.travis.yml) file and [Travis build logs][travis-link] for details on the automated tests and expected outputs.
## Utility Commands
The `Makefile` contains a list of utility commands meant for easy manipulation of the docker containers
- `make stop`
Stops the running containers
- `make start`
Starts the stopped containers
- `make connect`
Opens an interactive shell session within the php container
- `make rebuild`
Destroys and rebuilds the containers
- `make destroy`
Destroys the containers
## License
MIT
[travis-badge]: https://travis-ci.com/jasonheecs/laravel-docker-compose.svg?branch=master
[travis-link]: https://travis-ci.com/jasonheecs/laravel-docker-compose