diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7de3cfa --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose-production.yml b/docker-compose-production.yml new file mode 100644 index 0000000..0d7fe7c --- /dev/null +++ b/docker-compose-production.yml @@ -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 diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..2f1b934 --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,11 @@ +module.exports = { + apps: [ + { + name: 'BookStack', + port: '3377', + exec_mode: 'cluster', + instances: 'max', + script: './.output/server/index.mjs' + } + ] +} diff --git a/nuxt.config.ts b/nuxt.config.ts index f06dedb..b17c194 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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' }, diff --git a/nuxt/components/Logo.vue b/nuxt/components/Logo.vue index 2392889..768f09a 100644 --- a/nuxt/components/Logo.vue +++ b/nuxt/components/Logo.vue @@ -1,5 +1,5 @@