docker-swarm/README.md
2025-02-10 19:13:14 +01:00

1.2 KiB

${REPO_NAME}

${REPO_DESCRIPTION}

A propos de

Prérequis

Vous avez besoin d'une installation Ansible fonctionnelle sur votre machine.

  ./install-ansible.sh

Edition du fichier Hosts

sudo nano /etc/ansible/hosts

Creation clé SSH

ssh-keygen -t ed25519 -C "ansible"

Permissions clé SSH

chmod 600 ~/.ssh/ansible

Ping Command Ansible

ansible all -m ping

Copier clé SSH

ssh-copy-id -i ~/.ssh/ansible.pub 10.0.4.150

Ping Command Ansible avec nouvelle clé SSH

ansible all -m ping --key-file ~/.ssh/ansible

Démarrage

  git clone https://gitea.tips-of-mine.com${REPO_LINK}.git
  cd ${REPO_NAME}

Personnalisation

Le fichier .env pour les variable d'environnement

  nano .env

Modification des labels pour traefik

  nano docker-compose.yml

Lancement

  docker compose up -d
  docker compose logs -f

Buy me a coffe

Buy Me a Coffee at ko-fi.com