From a2ed0f6c365c700dc9adec86029ac8ff18a25a96 Mon Sep 17 00:00:00 2001 From: sylvain Date: Fri, 16 May 2025 20:10:44 +0000 Subject: [PATCH] Ajouter hubzilla.yml --- hubzilla.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 hubzilla.yml diff --git a/hubzilla.yml b/hubzilla.yml new file mode 100644 index 0000000..ddbae64 --- /dev/null +++ b/hubzilla.yml @@ -0,0 +1,55 @@ +version: "3.8" + +services: + db: + image: mariadb:10.6 + environment: + MYSQL_DATABASE: hubzilla + MYSQL_USER: hubzilla + MYSQL_PASSWORD: hubzilla_pass + MYSQL_ROOT_PASSWORD: root_pass + volumes: + - db_data:/var/lib/mysql + networks: + - hubzilla_net + deploy: + placement: + constraints: [node.hostname == ds1] + restart_policy: + condition: on-failure + + hubzilla: + image: hubzilla:debian12 # buildé et pushé manuellement avant + ports: + - target: 80 + published: 8380 + protocol: tcp + mode: host + environment: + DOMAIN: hub.alto.im + ADMIN_EMAIL: admin@hub.alto.im + SMTP_EMAIL: hub@admin.alto.im + SMTP_SERVER: smtp.example.com + SMTP_PORT: 587 + SMTP_USER: hub@admin.alto.im + SMTP_PASS: yourpass + depends_on: + - db + volumes: + - hubzilla_data:/var/www/html # contient site et config + networks: + - hubzilla_net + deploy: + placement: + constraints: [node.hostname == ds1] + restart_policy: + condition: on-failure + +volumes: + db_data: + hubzilla_data: + +networks: + hubzilla_net: + driver: overlay + attachable: true