docker-compose config for brining up the demo
This commit is contained in:
parent
ac2a69a5ed
commit
e5d24e3c9b
|
@ -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
|
Loading…
Reference in New Issue