Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru committed Feb 15, 2024
1 parent 703f7ce commit e2022b4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .docker/docking-octane.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdout_logfile_maxbytes=0
stopwaitsecs=3600

[program:docking-octane]
command=php /var/www/html/artisan octane:start --max-requests=500
command=php /var/www/html/artisan octane:start --max-requests=500 --log-level=debug
autostart=true
autorestart=true
redirect_stderr=true
Expand Down
10 changes: 5 additions & 5 deletions .docker/octane.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM ghcr.io/roadrunner-server/roadrunner:latest AS roadrunner
FROM php:8.2-fpm

COPY --from=roadrunner /usr/bin/rr /usr/local/bin/rr
FROM php:8.2-cli

WORKDIR /var/www/html

Expand Down Expand Up @@ -33,6 +30,9 @@ RUN rm -rf ./node_modules

RUN php artisan optimize
RUN php artisan storage:link
RUN ./vendor/bin/rr get-binary
RUN chmod +x ./rr


RUN chown -R www-data:www-data storage
RUN chown -R www-data:www-data storage/app
Expand All @@ -44,7 +44,7 @@ RUN chown www-data:www-data docking.sqlite
# Nginx remove default site
RUN rm /etc/nginx/sites-enabled/default

EXPOSE 80
EXPOSE 80 8080

############# Default app ENV
ENV APP_ENV="production"
Expand Down
17 changes: 9 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'channels' => ['stderr'],
'ignore_exceptions' => false,
],

Expand Down
17 changes: 9 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ services:
context: .
dockerfile: .docker/octane.Dockerfile
volumes:
- ./seth.sqlite:/var/www/html/database/seth.sqlite
- ./docking.sqlite:/var/www/html/database/docking.sqlite
- app_storage:/var/www/html/storage/app
environment:
DATABASE_URL: 'sqlite:////var/www/html/database/seth.sqlite'
# links:
# - gotenberg
DATABASE_URL: 'sqlite:////var/www/html/database/docking.sqlite'
links:
- gotenberg
ports:
- '8888:80'
- '8080:8080'

# gotenberg:
# image: gotenberg/gotenberg:7
# ports:
# - '9898:3000'
gotenberg:
image: gotenberg/gotenberg:7
ports:
- '9898:3000'

volumes:
app_storage:
1 change: 0 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/

Route::get('/', function () {
\Illuminate\Support\Facades\Log::error('test');
return view('welcome');
});

Expand Down

0 comments on commit e2022b4

Please sign in to comment.