Added environment variable for app port
This commit is contained in:
parent
6b94757760
commit
a0f0e7f44a
@ -32,6 +32,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
- APP_PORT=8000
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
- DB_USERNAME=root
|
- DB_USERNAME=root
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
6
php/entrypoint.sh
Executable file
6
php/entrypoint.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
composer install
|
||||||
|
composer update
|
||||||
|
php artisan migrate
|
||||||
|
php artisan serve --port=$APP_PORT --host=0.0.0.0
|
||||||
Loading…
x
Reference in New Issue
Block a user