refactore(core): extract homepage dashboard to standalone application
- Remove homepage service definition from control plane docker-compose.yml - Remove legacy ./config/homepage volume directory to eliminate dangling state - Relocate dashboard lifecycle and configuration to individual app for deployment
This commit is contained in:
1 parent
82b5e5e197
commit
7f5498adfc
10 files changed
-566
No files matched your search
@@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
# For configuration options and examples, please see:
|
|
||||||
# https://gethomepage.dev/configs/bookmarks
|
|
||||||
|
|
||||||
- My Projects:
|
|
||||||
- Github:
|
|
||||||
- abbr: GH
|
|
||||||
href: https://github.com/kiskaadee?tab=repositories
|
|
||||||
|
|
||||||
- Social Media:
|
|
||||||
- Instagram:
|
|
||||||
- abbr: IN
|
|
||||||
href: https://www.instagram.com/tierraenmisbotas//
|
|
||||||
|
|
||||||
- Learning Content:
|
|
||||||
- YouTube:
|
|
||||||
- abbr: YT
|
|
||||||
href: https://www.youtube.com/@scicreep8979
|
|
||||||
@@ -1,211 +0,0 @@
|
|||||||
.hp-kanban-section {
|
|
||||||
width: 100% !important;
|
|
||||||
flex-basis: 100% !important;
|
|
||||||
margin-top: 2rem !important;
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-section-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
border-bottom: 1px solid rgba(51, 65, 85, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-section-header h2 {
|
|
||||||
margin: 0 !important;
|
|
||||||
font-size: 1.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-board {
|
|
||||||
display: flex;
|
|
||||||
gap: 20px;
|
|
||||||
margin: 10px 0 30px 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-col {
|
|
||||||
flex: 1;
|
|
||||||
background: rgba(15, 23, 42, 0.4);
|
|
||||||
border: 1px solid rgba(51, 65, 85, 0.3);
|
|
||||||
border-radius: 12px;
|
|
||||||
padding: 20px;
|
|
||||||
min-height: 600px; /* Enforce min height for 3-4 courses */
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-col h3 {
|
|
||||||
font-size: 0.9rem !important;
|
|
||||||
margin: 0 0 1.5rem 0 !important;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: #f1f5f9;
|
|
||||||
text-align: center;
|
|
||||||
letter-spacing: 0.1em;
|
|
||||||
font-weight: 700;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
border-bottom: 2px solid rgba(56, 189, 248, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 12px;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card {
|
|
||||||
background: rgba(30, 41, 59, 0.8);
|
|
||||||
border: 1px solid rgba(51, 65, 85, 0.5);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 15px;
|
|
||||||
cursor: grab;
|
|
||||||
position: relative;
|
|
||||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card:hover {
|
|
||||||
border-color: #3b82f6;
|
|
||||||
transform: translateY(-2px);
|
|
||||||
background: #1e293b;
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-title {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin-bottom: 6px;
|
|
||||||
color: #f8fafc;
|
|
||||||
padding-right: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-desc {
|
|
||||||
font-size: 0.8rem;
|
|
||||||
color: #94a3b8;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-links {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 8px;
|
|
||||||
border-top: 1px solid rgba(51, 65, 85, 0.3);
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-links a {
|
|
||||||
text-decoration: none;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 0.75rem;
|
|
||||||
padding: 4px 8px;
|
|
||||||
border-radius: 4px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.milestone-link {
|
|
||||||
background: #3b82f6;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hub-link {
|
|
||||||
background: rgba(51, 65, 85, 0.5);
|
|
||||||
color: #94a3b8 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.milestone-link:hover { background: #2563eb; }
|
|
||||||
.hub-link:hover { background: rgba(51, 65, 85, 0.8); color: white !important; }
|
|
||||||
|
|
||||||
.hp-kanban-card.dragging {
|
|
||||||
opacity: 0.1;
|
|
||||||
transform: scale(0.9);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-actions {
|
|
||||||
position: absolute;
|
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
|
||||||
display: flex;
|
|
||||||
gap: 6px;
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card:hover .hp-kanban-card-actions {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-card-actions button {
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-add-btn {
|
|
||||||
background: #3b82f6;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 6px 16px;
|
|
||||||
border-radius: 6px;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-add-btn:hover { background: #2563eb; }
|
|
||||||
|
|
||||||
/* Modal Styles */
|
|
||||||
.hp-modal {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 10000;
|
|
||||||
inset: 0;
|
|
||||||
background: rgba(0,0,0,0.8);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-modal-content {
|
|
||||||
background: #1e293b;
|
|
||||||
padding: 2rem;
|
|
||||||
border-radius: 12px;
|
|
||||||
width: 90%;
|
|
||||||
max-width: 450px;
|
|
||||||
border: 1px solid #334155;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-form-group { margin-bottom: 1rem; }
|
|
||||||
.hp-form-group label { display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 4px; }
|
|
||||||
.hp-form-group input, .hp-form-group textarea, .hp-form-group select {
|
|
||||||
width: 100%;
|
|
||||||
background: #0f172a;
|
|
||||||
border: 1px solid #334155;
|
|
||||||
color: white;
|
|
||||||
padding: 8px;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-modal-actions {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 12px;
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-modal-actions button {
|
|
||||||
padding: 8px 18px;
|
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hp-kanban-board ~ ul,
|
|
||||||
.hp-kanban-board ~ .grid {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
@@ -1,234 +0,0 @@
|
|||||||
/**
|
|
||||||
* Learning Kanban Native Integration for Homepage (v4 - Autonomous & Anchorless)
|
|
||||||
*/
|
|
||||||
|
|
||||||
function getApiBase() {
|
|
||||||
return `https://learning.arch-services.mywire.org`;
|
|
||||||
}
|
|
||||||
|
|
||||||
const API_BASE = getApiBase();
|
|
||||||
let allCourses = [];
|
|
||||||
|
|
||||||
async function fetchCourses() {
|
|
||||||
try {
|
|
||||||
const response = await fetch(`${API_BASE}/api/courses`);
|
|
||||||
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
|
|
||||||
allCourses = await response.json();
|
|
||||||
return allCourses;
|
|
||||||
} catch (e) {
|
|
||||||
console.warn("Failed to fetch courses", e);
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function updateCourseStatus(courseId, newStatus) {
|
|
||||||
try {
|
|
||||||
const course = allCourses.find(c => c.id == courseId);
|
|
||||||
if (!course) return;
|
|
||||||
course.status = newStatus;
|
|
||||||
await fetch(`${API_BASE}/api/courses/${courseId}`, {
|
|
||||||
method: 'PUT',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify(course)
|
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
console.error("Failed to update course", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function createKanbanCard(course) {
|
|
||||||
return `
|
|
||||||
<div class="hp-kanban-card" draggable="true" data-id="${course.id}">
|
|
||||||
<div class="hp-kanban-card-actions">
|
|
||||||
<button onclick="window.hpShowCourseModal(${course.id})" title="Edit">✏️</button>
|
|
||||||
<button onclick="window.hpDeleteCourse(${course.id})" title="Delete">🗑️</button>
|
|
||||||
</div>
|
|
||||||
<div class="hp-kanban-card-title">${course.title}</div>
|
|
||||||
<div class="hp-kanban-card-desc">${course.description || ''}</div>
|
|
||||||
<div class="hp-kanban-card-links">
|
|
||||||
${course.last_link ? `<a href="${course.last_link}" target="_blank" class="milestone-link">🚩 Milestone ↗</a>` : ''}
|
|
||||||
<a href="${course.main_link}" target="_blank" class="hub-link">Hub ↗</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function renderKanban() {
|
|
||||||
// Look for the main services grid - this is our insertion point
|
|
||||||
const servicesGrid = document.getElementById('services');
|
|
||||||
if (!servicesGrid) return;
|
|
||||||
|
|
||||||
// Check if we already created our section
|
|
||||||
let section = document.getElementById('hp-learning-hub-section');
|
|
||||||
|
|
||||||
if (!section) {
|
|
||||||
section = document.createElement('section');
|
|
||||||
section.id = 'hp-learning-hub-section';
|
|
||||||
section.className = 'hp-kanban-section';
|
|
||||||
// Insert after services grid
|
|
||||||
servicesGrid.after(section);
|
|
||||||
|
|
||||||
section.innerHTML = `
|
|
||||||
<div class="hp-section-header">
|
|
||||||
<h2>Learning Hub</h2>
|
|
||||||
<button class="hp-add-btn" onclick="window.hpShowCourseModal()">+ Add Course</button>
|
|
||||||
</div>
|
|
||||||
<div class="hp-kanban-board">
|
|
||||||
<div class="hp-kanban-col" data-status="WIP">
|
|
||||||
<h3>🚀 In Progress</h3>
|
|
||||||
<div class="hp-kanban-list"></div>
|
|
||||||
</div>
|
|
||||||
<div class="hp-kanban-col" data-status="Planning">
|
|
||||||
<h3>📅 Planning</h3>
|
|
||||||
<div class="hp-kanban-list"></div>
|
|
||||||
</div>
|
|
||||||
<div class="hp-kanban-col" data-status="Archive">
|
|
||||||
<h3>📦 Archive</h3>
|
|
||||||
<div class="hp-kanban-list"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
injectModal();
|
|
||||||
}
|
|
||||||
|
|
||||||
await refreshBoardContent(section);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function refreshBoardContent(section) {
|
|
||||||
const courses = await fetchCourses();
|
|
||||||
const board = section.querySelector('.hp-kanban-board');
|
|
||||||
if (!board) return;
|
|
||||||
|
|
||||||
board.querySelectorAll('.hp-kanban-list').forEach(l => l.innerHTML = '');
|
|
||||||
|
|
||||||
courses.forEach(course => {
|
|
||||||
const list = board.querySelector(`.hp-kanban-col[data-status="${course.status}"] .hp-kanban-list`);
|
|
||||||
if (list) list.innerHTML += createKanbanCard(course);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Re-bind Drag & Drop
|
|
||||||
const cards = board.querySelectorAll('.hp-kanban-card');
|
|
||||||
cards.forEach(card => {
|
|
||||||
card.addEventListener('dragstart', (e) => {
|
|
||||||
e.dataTransfer.setData('text/plain', card.dataset.id);
|
|
||||||
card.classList.add('dragging');
|
|
||||||
});
|
|
||||||
card.addEventListener('dragend', () => card.classList.remove('dragging'));
|
|
||||||
});
|
|
||||||
|
|
||||||
const cols = board.querySelectorAll('.hp-kanban-col');
|
|
||||||
cols.forEach(col => {
|
|
||||||
col.addEventListener('dragover', (e) => e.preventDefault());
|
|
||||||
col.addEventListener('drop', async (e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
const id = e.dataTransfer.getData('text/plain');
|
|
||||||
const status = col.dataset.status;
|
|
||||||
const draggingCard = document.querySelector(`.hp-kanban-card[data-id="${id}"]`);
|
|
||||||
if (draggingCard) col.querySelector('.hp-kanban-list').appendChild(draggingCard);
|
|
||||||
await updateCourseStatus(id, status);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Modal Logic
|
|
||||||
window.hpShowCourseModal = function(id = null) {
|
|
||||||
const modal = document.getElementById('hp-course-modal');
|
|
||||||
if (!modal) return;
|
|
||||||
const form = document.getElementById('hp-course-form');
|
|
||||||
modal.style.display = 'flex';
|
|
||||||
if (id) {
|
|
||||||
const course = allCourses.find(c => c.id == id);
|
|
||||||
if (!course) return;
|
|
||||||
document.getElementById('hp-modal-title').innerText = 'Edit Course';
|
|
||||||
document.getElementById('hp-course-id').value = course.id;
|
|
||||||
document.getElementById('hp-title').value = course.title;
|
|
||||||
document.getElementById('hp-description').value = course.description || '';
|
|
||||||
document.getElementById('hp-main_link').value = course.main_link;
|
|
||||||
document.getElementById('hp-last_link').value = course.last_link || '';
|
|
||||||
document.getElementById('hp-status').value = course.status;
|
|
||||||
} else {
|
|
||||||
document.getElementById('hp-modal-title').innerText = 'Add New Course';
|
|
||||||
form.reset();
|
|
||||||
document.getElementById('hp-course-id').value = '';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
window.hpCloseModal = () => {
|
|
||||||
const modal = document.getElementById('hp-course-modal');
|
|
||||||
if (modal) modal.style.display = 'none';
|
|
||||||
};
|
|
||||||
|
|
||||||
window.hpDeleteCourse = async (id) => {
|
|
||||||
if (confirm('Delete this course?')) {
|
|
||||||
await fetch(`${API_BASE}/api/courses/${id}`, { method: 'DELETE' });
|
|
||||||
const section = document.getElementById('hp-learning-hub-section');
|
|
||||||
if (section) refreshBoardContent(section);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function injectModal() {
|
|
||||||
if (document.getElementById('hp-course-modal')) return;
|
|
||||||
const modalHtml = `
|
|
||||||
<div id="hp-course-modal" class="hp-modal">
|
|
||||||
<div class="hp-modal-content">
|
|
||||||
<h2 id="hp-modal-title">Add Course</h2>
|
|
||||||
<form id="hp-course-form">
|
|
||||||
<input type="hidden" id="hp-course-id">
|
|
||||||
<div class="hp-form-group"><label>Title</label><input type="text" id="hp-title" required></div>
|
|
||||||
<div class="hp-form-group"><label>Description</label><textarea id="hp-description"></textarea></div>
|
|
||||||
<div class="hp-form-group"><label>Main Link</label><input type="url" id="hp-main_link" required></div>
|
|
||||||
<div class="hp-form-group"><label>Milestone Link</label><input type="url" id="hp-last_link"></div>
|
|
||||||
<div class="hp-form-group"><label>Status</label>
|
|
||||||
<select id="hp-status">
|
|
||||||
<option value="WIP">WIP</option>
|
|
||||||
<option value="Planning">Planning</option>
|
|
||||||
<option value="Archive">Archive</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="hp-modal-actions">
|
|
||||||
<button type="button" onclick="hpCloseModal()">Cancel</button>
|
|
||||||
<button type="submit">Save</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
document.body.insertAdjacentHTML('beforeend', modalHtml);
|
|
||||||
|
|
||||||
document.getElementById('hp-course-form').onsubmit = async (e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
const id = document.getElementById('hp-course-id').value;
|
|
||||||
const data = {
|
|
||||||
title: document.getElementById('hp-title').value,
|
|
||||||
description: document.getElementById('hp-description').value,
|
|
||||||
main_link: document.getElementById('hp-main_link').value,
|
|
||||||
last_link: document.getElementById('hp-last_link').value,
|
|
||||||
status: document.getElementById('hp-status').value
|
|
||||||
};
|
|
||||||
const method = id ? 'PUT' : 'POST';
|
|
||||||
const url = id ? `${API_BASE}/api/courses/${id}` : `${API_BASE}/api/courses`;
|
|
||||||
await fetch(url, {
|
|
||||||
method,
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify(data)
|
|
||||||
});
|
|
||||||
window.hpCloseModal();
|
|
||||||
const section = document.getElementById('hp-learning-hub-section');
|
|
||||||
if (section) refreshBoardContent(section);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Observer
|
|
||||||
let debounceTimer;
|
|
||||||
const observer = new MutationObserver(() => {
|
|
||||||
clearTimeout(debounceTimer);
|
|
||||||
debounceTimer = setTimeout(() => {
|
|
||||||
const servicesGrid = document.getElementById('services');
|
|
||||||
if (servicesGrid && !document.getElementById('hp-learning-hub-section')) {
|
|
||||||
renderKanban();
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
});
|
|
||||||
|
|
||||||
observer.observe(document.body, { childList: true, subtree: true });
|
|
||||||
renderKanban();
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
# For configuration options and examples, please see:
|
|
||||||
# https://gethomepage.dev/configs/docker/
|
|
||||||
|
|
||||||
my-docker:
|
|
||||||
host: socket-proxy
|
|
||||||
port: 2375
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# sample kubernetes config
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
# pve:
|
|
||||||
# url: https://proxmox.host.or.ip:8006
|
|
||||||
# token: username@pam!Token ID
|
|
||||||
# secret: secret
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
---
|
|
||||||
# Applications Group
|
|
||||||
- Applications:
|
|
||||||
# - Gitea:
|
|
||||||
# icon: gitea.png
|
|
||||||
# href: https://gitea.arch-services.mywire.org
|
|
||||||
# description: Git Service
|
|
||||||
# server: my-docker
|
|
||||||
# container: gitea
|
|
||||||
# - Ollama:
|
|
||||||
# icon: ollama.png
|
|
||||||
# href: https://ollama.arch-services.mywire.org
|
|
||||||
# description: AI Model Runner
|
|
||||||
# server: my-docker
|
|
||||||
# container: ollama-ollama-1
|
|
||||||
- Jellyfin:
|
|
||||||
icon: jellyfin.png
|
|
||||||
href: https://jellyfin.arch-services.mywire.org
|
|
||||||
description: Media Server
|
|
||||||
server: my-docker
|
|
||||||
container: jellyfin
|
|
||||||
- Excalidraw:
|
|
||||||
icon: excalidraw.png
|
|
||||||
href: https://excalidraw.arch-services.mywire.org
|
|
||||||
description: Sketching Tool
|
|
||||||
server: my-docker
|
|
||||||
container: excalidraw-excalidraw-1
|
|
||||||
- Mermaid:
|
|
||||||
icon: mermaid.png
|
|
||||||
href: https://mermaid.arch-services.mywire.org
|
|
||||||
description: Diagramming Tool
|
|
||||||
server: my-docker
|
|
||||||
container: mermaid-live-editor
|
|
||||||
- Docs-Viewer:
|
|
||||||
icon: files.png
|
|
||||||
href: https://docs.arch-services.mywire.org
|
|
||||||
description: Reactive docs viewer
|
|
||||||
server: my-docker
|
|
||||||
container: docs
|
|
||||||
- Minecraft:
|
|
||||||
icon: minecraft.png
|
|
||||||
href: https://minecraft.arch-services.mywire.org
|
|
||||||
description: Self hosted Minecraft server
|
|
||||||
server: my-docker
|
|
||||||
container: minecraft-server
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
# For configuration options and examples, please see:
|
|
||||||
# https://gethomepage.dev/configs/settings/
|
|
||||||
|
|
||||||
providers:
|
|
||||||
openweathermap: openweathermapapikey
|
|
||||||
weatherapi: weatherapiapikey
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
# For configuration options and examples, please see:
|
|
||||||
# https://gethomepage.dev/configs/info-widgets/
|
|
||||||
|
|
||||||
- resources:
|
|
||||||
cpu: true
|
|
||||||
memory: true
|
|
||||||
|
|
||||||
- search:
|
|
||||||
provider: google
|
|
||||||
target: _blank
|
|
||||||
@@ -200,31 +200,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- socket-net
|
- socket-net
|
||||||
|
|
||||||
homepage:
|
|
||||||
image: ghcr.io/gethomepage/homepage:latest
|
|
||||||
container_name: homepage
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- ./config/homepage:/app/config
|
|
||||||
- /home:/home:ro
|
|
||||||
environment:
|
|
||||||
- HOMEPAGE_ALLOWED_HOSTS=${DOMAIN}
|
|
||||||
networks:
|
|
||||||
- proxy-net
|
|
||||||
- socket-net
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
# Public (HTTPS)
|
|
||||||
- "traefik.http.routers.homepage.rule=Host(`${DOMAIN}`)"
|
|
||||||
- "traefik.http.routers.homepage.entrypoints=websecure"
|
|
||||||
- "traefik.http.routers.homepage.tls=true"
|
|
||||||
- "traefik.http.routers.homepage.service=homepage-svc"
|
|
||||||
# Public (Redirect)
|
|
||||||
- "traefik.http.routers.homepage-red.rule=Host(`${DOMAIN}`)"
|
|
||||||
- "traefik.http.routers.homepage-red.entrypoints=web"
|
|
||||||
- "traefik.http.routers.homepage-red.middlewares=https-redirect@docker"
|
|
||||||
- "traefik.http.services.homepage-svc.loadbalancer.server.port=3000"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy-net:
|
proxy-net:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in new issue
Block a user