yunohost_dans_lxc
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
yunohost_dans_lxc [2020/01/08 21:22] – [Reverse Proxy Nginx] simon | yunohost_dans_lxc [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Un conteneur LXC pour Yunohost ====== | ||
- | __Objectif :__ Migrer le serveur (VPS) de duniter.be vers un conteneur LXC sur un serveur plus costaud. | ||
- | |||
- | (Attention, Yunohost n'est actuellement disponible que pour Debian Stretch et pas encore pour Debian Buster!) | ||
- | <code bash> | ||
- | # lxc-create -t download -n yunohost -- --dist debian --release stretch --arch amd64 | ||
- | |||
- | |||
- | # cat / | ||
- | lxc.start.auto = 1 | ||
- | |||
- | # Distribution configuration | ||
- | lxc.include = / | ||
- | lxc.arch = linux64 | ||
- | |||
- | # Container specific configuration | ||
- | lxc.rootfs.path = dir:/ | ||
- | lxc.uts.name = yunohost | ||
- | |||
- | # Network configuration | ||
- | lxc.net.0.type = veth | ||
- | lxc.net.0.link = lxcbr0 | ||
- | lxc.net.0.flags = up | ||
- | lxc.net.0.hwaddr = 00: | ||
- | |||
- | # cat / | ||
- | (...) | ||
- | dhcp-host=yunohost, | ||
- | |||
- | # systemctl restart lxc-net | ||
- | |||
- | # lxc-start yunohost | ||
- | |||
- | # lxc-ls -f | ||
- | NAME | ||
- | yunohost | ||
- | </ | ||
- | |||
- | ===== Installation de Yunohost ===== | ||
- | [[https:// | ||
- | |||
- | <code bash> | ||
- | # lxc-attach yunohost | ||
- | |||
- | root@yunohost:/# | ||
- | |||
- | root@yunohost:/# | ||
- | (...) | ||
- | [ OK ] YunoHost installation completed ! | ||
- | =============================================================================== | ||
- | You should now proceed with Yunohost post-installation. This is where you will | ||
- | be asked for : | ||
- | - the main domain of your server ; | ||
- | - the administration password. | ||
- | (...) | ||
- | </ | ||
- | |||
- | On lance la " | ||
- | <code bash> | ||
- | root@yunohost:/# | ||
- | Domaine principal : artanux.be | ||
- | Vous êtes maintenant sur le point de définir un nouveau mot de passe d’administration. Le mot de passe doit comporter au moins 8 caractères – bien qu’il soit recommandé d’utiliser un mot de passe plus long (c’est-à-dire une phrase secrète) et/ou d’utiliser différents types de caractères (majuscules, | ||
- | Nouveau mot de passe d’administration : | ||
- | Confirmez : nouveau mot de passe d’administration : | ||
- | Info : L' | ||
- | </ | ||
- | |||
- | |||
- | ===== Reverse Proxy Nginx ===== | ||
- | Sur le serveur sur lequel tourne les conteneurs [[LXC]] que j' | ||
- | J' | ||
- | |||
- | <code bash> | ||
- | # vim / | ||
- | |||
- | # ln -s / | ||
- | </ |
yunohost_dans_lxc.1578518526.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)