use docker image

This commit is contained in:
Chimezie Enyinnaya
2024-09-10 15:30:33 +01:00
parent e8bc2dc107
commit ef2ce4de97
2 changed files with 5 additions and 10 deletions

View File

@@ -20,8 +20,8 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
if ($this->app->environment('production')) { // if ($this->app->environment('production')) {
URL::forceScheme('https'); // URL::forceScheme('https');
}; // };
} }
} }

View File

@@ -2,9 +2,7 @@ version: '3.8'
services: services:
app: app:
build: image: 'ammezie/laravelcoolify:latest'
context: .
dockerfile: Dockerfile
volumes: volumes:
- '.:/var/www/html' - '.:/var/www/html'
environment: environment:
@@ -58,10 +56,7 @@ services:
- mysql - mysql
worker: worker:
# image: 'ammezie/laravelcoolify:latest' image: 'ammezie/laravelcoolify:latest'
build:
context: .
dockerfile: Dockerfile
command: ["php", "/var/www/html/artisan", "queue:work", "--tries=3"] command: ["php", "/var/www/html/artisan", "queue:work", "--tries=3"]
volumes: volumes:
- '.:/var/www/html' - '.:/var/www/html'