forked from sylvain/hubzilla
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
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
|