Skip to content

Instantly share code, notes, and snippets.

@brunocascio
Last active May 16, 2018 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunocascio/8651c335faf2ceaa3af0a31efbd8e3c6 to your computer and use it in GitHub Desktop.
Save brunocascio/8651c335faf2ceaa3af0a31efbd8e3c6 to your computer and use it in GitHub Desktop.
Docker/Compose files for Laravel (Development Environment)
version: '3'
services:
db:
image: mariadb
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=laraveldb
app:
build: .
image: brunocascio/laravel-dev
volumes:
- ./app:/var/www/html/app
- ./config:/var/www/html/config
- ./database:/var/www/html/database
- ./public:/var/www/html/public
- ./resources:/var/www/html/resources
- ./routes:/var/www/html/routes
- ./tests:/var/www/html/tests
- ./phpunit.xml:/var/www/html/phpunit.xml
ports:
- 8000:8000
command: php artisan serve --host 0.0.0.0
depends_on:
- db
environment:
- APP_NAME=Laravel
- APP_ENV=local
- APP_KEY=base64:inZfyLJY7AG7gMZqHt5JgeGWnqRX2HnEie0WZ9nqV0Y=
- APP_DEBUG=true
- APP_LOG=single
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost
- DB_HOST=db
- DB_DATABASE=laraveldb
- DB_USERNAME=root
- DB_PASSWORD=root
volumes:
db:
FROM celerative/laravel:7.1
MAINTAINER Bruno Cascio <brunocascio@gmail.com>
# COPY instructions are inherited from the base image (ONBUILD COPY ...)
# artisan port for development
EXPOSE 8000
@esilvajr
Copy link

Você encontrou alguma maneira de expor os logs do stdout usando dessa forma?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment