generated from Flycro/laravel-nuxt
build: Docker Files for Production
parent
8c595aa3c6
commit
5a546f8ef2
|
|
@ -0,0 +1,11 @@
|
|||
FROM dunglas/frankenphp
|
||||
|
||||
RUN install-php-extensions pcntl
|
||||
|
||||
#ENV SERVER_NAME=bookstack.octolabs.net
|
||||
ENV SERVER_NAME=:80
|
||||
|
||||
|
||||
COPY . /app
|
||||
|
||||
ENTRYPOINT ["php", "artisan", "octane:frankenphp"]
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
services:
|
||||
php:
|
||||
image: dunglas/frankenphp
|
||||
restart: unless-stopped
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "13379:8000"
|
||||
networks:
|
||||
- laravel
|
||||
volumes:
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
redis:
|
||||
image: 'redis:alpine'
|
||||
ports:
|
||||
- '${FORWARD_REDIS_PORT:-6379}:6379'
|
||||
volumes:
|
||||
- 'redis:/data'
|
||||
networks:
|
||||
- laravel
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- redis-cli
|
||||
- ping
|
||||
retries: 3
|
||||
timeout: 5s
|
||||
|
||||
networks:
|
||||
laravel:
|
||||
driver: bridge
|
||||
# Volumes needed for Caddy certificates and configuration
|
||||
volumes:
|
||||
caddy_data:
|
||||
driver: local
|
||||
caddy_config:
|
||||
driver: local
|
||||
redis:
|
||||
driver: local
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'BookStack',
|
||||
port: '3377',
|
||||
exec_mode: 'cluster',
|
||||
instances: 'max',
|
||||
script: './.output/server/index.mjs'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ export default defineNuxtConfig({
|
|||
|
||||
app: {
|
||||
head: {
|
||||
title: 'Laravel/Nuxt Boilerplate',
|
||||
title: 'BookStack',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<span class="text-primary">Chapter</span> Stack
|
||||
<span class="text-primary">Book</span> Stack
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue