forked from nathalie/pedi2
Merge pull request 'Actualizar docker-compose.yml para optimizarlo para puesta en produccion.' (#4) from felix/pedi2:master into master
Reviewed-on: nathalie/pedi2#4
This commit is contained in:
commit
dce0620365
|
@ -8,7 +8,7 @@ services:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: laravel-image
|
image: laravel-image
|
||||||
container_name: laravel-app
|
container_name: pedi2-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www/
|
working_dir: /var/www/
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -19,10 +19,8 @@ services:
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
container_name: laravel-db
|
container_name: pedi2-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: ${DB_DATABASE}
|
MYSQL_DATABASE: ${DB_DATABASE}
|
||||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
||||||
|
@ -39,7 +37,7 @@ services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
container_name: laravel-nginx
|
container_name: pedi2-nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${NGINX_PORT}:80
|
- ${NGINX_PORT}:80
|
||||||
|
|
|
@ -13,6 +13,10 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (App::environment('production')) {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
Route::get('/', 'ProductoController@index')->name('productos');
|
Route::get('/', 'ProductoController@index')->name('productos');
|
||||||
|
|
||||||
Auth::routes(['register' => false]);
|
Auth::routes(['register' => false]);
|
||||||
|
|
Loading…
Reference in New Issue