docker-compose config for brining up the demo

This commit is contained in:
Alex Wright 2019-01-22 15:33:29 +01:00
parent ac2a69a5ed
commit e5d24e3c9b
1 changed files with 30 additions and 0 deletions

30
docker-compose.yaml Normal file
View File

@ -0,0 +1,30 @@
version: '3.2'
services:
app:
image: laravel-demo-app
build:
context: ./
dockerfile: ./Dockerfile
restart: "no"
working_dir: /app
ports:
- '8000:8000'
volumes:
- ./storage/laravel:/app/storage
command: ./artisan serve --host 0.0.0.0
depends_on:
- db
environment:
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
db:
image: postgres
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
volumes:
- ./storage/postgres:/var/lib/postgresql/data