92 lines
2.6 KiB
Markdown
92 lines
2.6 KiB
Markdown
---
|
|
title: Habitat
|
|
created: 2026-06-08
|
|
updated: 2026-06-08
|
|
type: app
|
|
tags: [catalogue, forums, self-hosted, community, app-marathon3-batch-a]
|
|
confidence: medium
|
|
contested: false
|
|
sources: [https://selfh.st/apps/?tag=Forums]
|
|
---
|
|
|
|
# 💬 Habitat
|
|
|
|
> Plateforme communautaire open source pour groupes et associations.
|
|
|
|
## 📋 Informations Générales
|
|
|
|
| Champ | Valeur |
|
|
| :--- | :--- |
|
|
| **Site web** | [github.com/jordan-wright/habitat](https://github.com/jordan-wright/habitat) |
|
|
| **GitHub** | [jordan-wright/habitat](https://github.com/jordan-wright/habitat) |
|
|
| **License** | MIT |
|
|
| **Langage** | Go |
|
|
| **Étoiles GitHub** | 1k ⭐ |
|
|
| **Catégorie** | [[cat-forums|Forums]] |
|
|
|
|
## 📝 Description
|
|
|
|
**Habitat** est une plateforme communautaire légère écrite en Go par Jordan Wright. Conçue pour permettre à des groupes (associations, hackerspaces, équipes) de gérer un espace commun avec discussions, événements et profils membres. Plus simple que Discourse, plus moderne que phpBB.
|
|
|
|
**Différence vs Discourse** : Beaucoup plus minimaliste — pas de plugins, pas de scaling enterprise. Idéal pour une communauté < 500 membres.
|
|
|
|
**Pour qui** : petits groupes, hackerspaces, associations qui veulent un outil simple et rapide.
|
|
|
|
## 🚀 Installation
|
|
|
|
### Docker Compose
|
|
|
|
```yaml
|
|
version: '3.8'
|
|
services:
|
|
habitat:
|
|
image: jordanwright/habitat:latest
|
|
container_name: habitat
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DATABASE_URL=postgres://habitat:secret@db:5432/habitat
|
|
- JWT_SECRET=changeme
|
|
depends_on:
|
|
- db
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.habitat.rule: "Host(`comm.example.com`)"
|
|
traefik.http.routers.habitat.tls.certresolver: letsencrypt
|
|
db:
|
|
image: postgres:16
|
|
container_name: habitat-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: habitat
|
|
POSTGRES_USER: habitat
|
|
POSTGRES_PASSWORD: secret
|
|
volumes:
|
|
- ./pgdata:/var/lib/postgresql/data
|
|
```
|
|
|
|
## 🔄 Alternatives
|
|
|
|
### Open Source
|
|
- [[app-discourse]] — Référence forums modernes
|
|
- [[app-flarum]] — Forum PHP moderne
|
|
- [[app-storyden]] — Communauté hybride
|
|
|
|
### Propriétaires
|
|
- **Discord** — Chat non-persistant
|
|
- **Slack** — Teams payant
|
|
|
|
## 🔐 Sécurité
|
|
- **JWT** pour sessions
|
|
- **OAuth** optionnel via providers
|
|
- **CSRF** : protection tokens
|
|
|
|
## 📚 Ressources
|
|
- [GitHub Repository](https://github.com/jordan-wright/habitat)
|
|
|
|
## Pages Liées
|
|
- [[cat-forums]] — Catégorie Forums
|
|
- [[app-discourse]] — Concurrent principal
|
|
- [[recettes-docker-compose]] — Templates Docker
|