Add docs local production docker-compose.yml

This commit is contained in:
Leendert de Borst
2025-09-17 09:10:10 +02:00
parent 7d73222ee1
commit 30a009c5c4
4 changed files with 66 additions and 12 deletions

2
.vscode/tasks.json vendored
View File

@@ -199,7 +199,7 @@
{
"label": "Build and watch Docs",
"type": "shell",
"command": "docker compose build && docker compose up",
"command": "docker compose -f docker-compose.dev.yml build && docker compose -f docker-compose.dev.yml up",
"problemMatcher": [],
"group": {
"kind": "build",

View File

@@ -0,0 +1,13 @@
# Production overrides to disable GitHub metadata
plugins:
- jekyll-sitemap
- jekyll-redirect-from
# Explicitly set repository to avoid GitHub API calls
repository: aliasvault/aliasvault
# Set baseurl explicitly to avoid GitHub Pages detection
baseurl: ""
# Disable GitHub metadata
github: [metadata]

View File

@@ -0,0 +1,22 @@
# Docker Compose file for the AliasVault documentation
#
# This file is used to build the AliasVault documentation and serve it locally in development mode
# with livereload enabled.
#
# Usage:
# docker-compose up -d
# docker-compose down
#
services:
jekyll:
build:
context: .
volumes:
- .:/srv/jekyll
ports:
- "4000:4000"
command: bundle exec jekyll serve --host 0.0.0.0 --watch --force_polling --livereload
environment:
- JEKYLL_ENV=development
- JEKYLL_NO_CACHE=true
- DISABLE_DISK_CACHE=true

View File

@@ -1,12 +1,31 @@
# Docker Compose file for the AliasVault documentation
#
# This file is used to build the AliasVault documentation and serve it locally in production mode
# with caching and without livereload.
#
# Usage:
# docker-compose up -d
# docker-compose down
#
services:
jekyll:
build: .
volumes:
- .:/srv/jekyll
ports:
- "4000:4000"
command: bundle exec jekyll serve --host 0.0.0.0 --watch --force_polling --livereload
environment:
- JEKYLL_ENV=development
- JEKYLL_NO_CACHE=true
- DISABLE_DISK_CACHE=true
jekyll:
build:
context: .
ports:
- "4000:4000"
command: bundle exec jekyll serve --host 0.0.0.0 --no-watch --config _config.yml,_config.production.yml
environment:
- JEKYLL_ENV=production
- JEKYLL_NO_CACHE=false
- DISABLE_DISK_CACHE=false
- JEKYLL_GITHUB_TOKEN=
- PAGES_REPO_NWO=aliasvault/aliasvault
- NO_GITHUB=true
volumes:
- .:/srv/jekyll
- jekyll_cache:/srv/jekyll/.jekyll-cache
- jekyll_site:/srv/jekyll/_site
volumes:
jekyll_cache:
jekyll_site: