Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 30 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ ScaleTail provides ready-to-run [Docker Compose](https://docs.docker.com/compose
| 🗃️ **Vaultwarden** | An unofficial Bitwarden server implementation written in Rust. | [Details](services/vaultwarden) |
| ✅ **Vikunja** | A self-hosted task and project management platform with projects, reminders, labels, recurring tasks, and collaboration features. | [Details](services/vikunja) |
| 💸 **Wallos** | An open-source, self-hostable web app to track and manage your recurring subscriptions and expenses, with multi-currency support, customizable categories, and statistics. | [Details](services/wallos) |
| 📚 **XWiki** |XWiki offers a generic platform for developing projects and collaborative applications using the wiki paradigm.|[Details](services/xwiki)|

### 📊 Dashboards and Visualization

Expand Down Expand Up @@ -252,8 +253,8 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod

<!-- readme: contributors -start -->
<table>
<tbody>
<tr>
<tbody>
<tr>
<td align="center">
<a href="https://github.com/crypt0rr">
<img src="https://avatars.githubusercontent.com/u/57799908?v=4" width="100;" alt="crypt0rr"/>
Expand Down Expand Up @@ -282,29 +283,22 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
<sub><b>michaelhodges</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/LaijieJi">
<img src="https://avatars.githubusercontent.com/u/108839952?v=4" width="100;" alt="LaijieJi"/>
<br />
<sub><b>LaijieJi</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/adamsthws">
<img src="https://avatars.githubusercontent.com/u/52178922?v=4" width="100;" alt="adamsthws"/>
<br />
<sub><b>adamsthws</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/theryukverse">
<img src="https://avatars.githubusercontent.com/u/22323518?v=4" width="100;" alt="theryukverse"/>
<br />
<sub><b>theryukverse</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/KhaaL">
<img src="https://avatars.githubusercontent.com/u/692524?v=4" width="100;" alt="KhaaL"/>
Expand All @@ -320,10 +314,17 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
</a>
</td>
<td align="center">
<a href="https://github.com/jpmurray">
<img src="https://avatars.githubusercontent.com/u/1550428?v=4" width="100;" alt="jpmurray"/>
<a href="https://github.com/onlykshitij">
<img src="https://avatars.githubusercontent.com/u/30444410?v=4" width="100;" alt="onlykshitij"/>
<br />
<sub><b>jpmurray</b></sub>
<sub><b>onlykshitij</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/LaijieJi">
<img src="https://avatars.githubusercontent.com/u/108839952?v=4" width="100;" alt="LaijieJi"/>
<br />
<sub><b>LaijieJi</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -340,8 +341,8 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
<sub><b>mikkotor</b></sub>
</a>
</td>
</tr>
<tr>
</tr>
<tr>
<td align="center">
<a href="https://github.com/NI-R0">
<img src="https://avatars.githubusercontent.com/u/98448863?v=4" width="100;" alt="NI-R0"/>
Expand Down Expand Up @@ -384,15 +385,22 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
<sub><b>pjv</b></sub>
</a>
</td>
</tr>
<tr>
</tr>
<tr>
<td align="center">
<a href="https://github.com/wedge22">
<img src="https://avatars.githubusercontent.com/u/34723349?v=4" width="100;" alt="wedge22"/>
<br />
<sub><b>wedge22</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jpmurray">
<img src="https://avatars.githubusercontent.com/u/1550428?v=4" width="100;" alt="jpmurray"/>
<br />
<sub><b>jpmurray</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Jacob-JA-Shanks">
<img src="https://avatars.githubusercontent.com/u/44290899?v=4" width="100;" alt="Jacob-JA-Shanks"/>
Expand Down Expand Up @@ -421,15 +429,15 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
<sub><b>dfilvtov</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/cdkooistra">
<img src="https://avatars.githubusercontent.com/u/70811244?v=4" width="100;" alt="cdkooistra"/>
<br />
<sub><b>cdkooistra</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Aurorainic">
<img src="https://avatars.githubusercontent.com/u/88829187?v=4" width="100;" alt="Aurorainic"/>
Expand Down Expand Up @@ -458,8 +466,8 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
<sub><b>orchard0</b></sub>
</a>
</td>
</tr>
<tbody>
</tr>
<tbody>
</table>
<!-- readme: contributors -end -->

Expand Down
30 changes: 30 additions & 0 deletions services/xwiki/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#version=1.1
#URL=https://github.com/tailscale-dev/ScaleTail
#COMPOSE_PROJECT_NAME= # Optional: only use when running multiple deployments on the same infrastructure.

# Service Configuration
SERVICE=xwiki # Service name (e.g., adguard). Used as hostname in Tailscale and for container naming (app-${SERVICE}).
IMAGE_URL=xwiki:stable-mariadb-tomcat # Docker image URL from container registry (e.g., adguard/adguard-home).

# Network Configuration
SERVICEPORT=80 # Port to expose to local network. Uncomment the "ports:" section in compose.yaml to enable.
DNS_SERVER=9.9.9.9 # Preferred DNS server for Tailscale. Uncomment the "dns:" section in compose.yaml to enable.

# Tailscale Configuration
TS_AUTHKEY= # Auth key from https://tailscale.com/admin/authkeys. See: https://tailscale.com/kb/1085/auth-keys#generate-an-auth-key for instructions.

# Time Zone setting for containers
TZ=Europe/Amsterdam # See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

# Optional Service variables
# PUID=1000


#EXAMPLE_VAR="Environment varibale"

# Default environment values
XWIKI_VERSION=18.2.1
DB_USER=xwiki
DB_PASSWORD=xwiki
DB_DATABASE=xwiki
MARIADB_ROOT_PASSWORD=xwiki
21 changes: 21 additions & 0 deletions services/xwiki/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# XWiki with Tailscale Sidecar Configuration

This Docker Compose configuration sets up **XWiki** with a Tailscale sidecar container, enabling secure, private access to your self-hosted wiki over your Tailnet. With this setup, your XWiki instance is **not exposed to the public internet** and is only accessible from authorized devices connected via Tailscale.

## XWiki

[**XWiki**](https://www.xwiki.org) is a powerful open-source wiki platform designed for collaboration, knowledge management, and building custom web applications. It combines the flexibility of a wiki with the structure of a CMS, making it suitable for teams, documentation hubs, and internal tools.

## Key Features

- 📝 Rich content editing with WYSIWYG and Markdown support
- 👥 Advanced user permissions and access control
- 🔌 Highly extensible with plugins and macros
- 📊 Structured data and application-building capabilities
- 🔍 Full-text search and content organization tools
- 🏢 Ideal for internal documentation and knowledge bases

## Resources

- XWiki Docker Repo: <https://github.com/xwiki/xwiki-docker>
- XWiki Documentation: <https://www.xwiki.org/xwiki/bin/view/Documentation/>
85 changes: 85 additions & 0 deletions services/xwiki/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
configs:
ts-serve:
content: |
{"TCP":{"443":{"HTTPS":true}},
"Web":{"$${TS_CERT_DOMAIN}:443":
{"Handlers":{"/":
{"Proxy":"http://127.0.0.1:8080"}}}},
"AllowFunnel":{"$${TS_CERT_DOMAIN}:443":false}}

services:
# Make sure you have updated/checked the .env file with the correct variables.
# All the ${ xx } need to be defined there.
# Tailscale Sidecar Configuration
tailscale:
image: tailscale/tailscale:latest # Image to be used
container_name: tailscale-${SERVICE} # Name for local container management
hostname: ${SERVICE} # Name used within your Tailscale environment
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json # Tailscale Serve configuration to expose the web interface on your local Tailnet - remove this line if not required
- TS_USERSPACE=false
- TS_ENABLE_HEALTH_CHECK=true # Enable healthcheck endpoint: "/healthz"
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
- TS_AUTH_ONCE=true
configs:
- source: ts-serve
target: /config/serve.json
volumes:
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
devices:
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
cap_add:
- net_admin # Tailscale requirement
#ports:
# - 0.0.0.0:${SERVICEPORT}:${SERVICEPORT} # Binding port ${SERVICE}PORT to the local network - may be removed if only exposure to your Tailnet is required
# If any DNS issues arise, use your preferred DNS provider by uncommenting the config below
# dns:
# - ${DNS_SERVER}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"] # Check Tailscale has a Tailnet IP and is operational
interval: 1m # How often to perform the check
timeout: 10s # Time to wait for the check to succeed
retries: 3 # Number of retries before marking as unhealthy
start_period: 10s # Time to wait before starting health checks
restart: always

application:
image: ${IMAGE_URL}
network_mode: service:tailscale
container_name: app-${SERVICE}
depends_on:
tailscale:
condition: service_healthy
db:
condition: service_started
environment:
- XWIKI_VERSION=${XWIKI_VERSION}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- DB_HOST=db-${SERVICE}
volumes:
- ./${SERVICE}-data/xwiki:/usr/local/xwiki
restart: always
db:
image: "mariadb:12"
container_name: db-${SERVICE}
volumes:
- ./${SERVICE}-data/mariadb:/var/lib/mysql
- type: bind
source: ./init.sql
target: /docker-entrypoint-initdb.d/init.sql
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_DATABASE}
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_bin"
- "--explicit-defaults-for-timestamp=1"
restart: always
1 change: 1 addition & 0 deletions services/xwiki/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
grant all privileges on *.* to xwiki@'%'