mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-01-22 07:03:21 +01:00
Implemented friendica role
This commit is contained in:
parent
4ae219be71
commit
7da5398d0d
@ -1,4 +1,49 @@
|
|||||||
# role friendica
|
# role friendica
|
||||||
|
|
||||||
|
## Delete all
|
||||||
|
docker exec -i central-mariadb mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;"; docker compose down; rm -rv /mnt/hdd/data/docker/volumes/friendica_data; docker volume rm friendica_data
|
||||||
|
|
||||||
|
## Reset Database
|
||||||
|
### Manual
|
||||||
|
DROP DATABASE friendica;
|
||||||
|
CREATE DATABASE friendica;
|
||||||
|
exit;
|
||||||
|
|
||||||
|
### Automatic
|
||||||
|
DB_ROOT_PASSWORD="your_root_password"
|
||||||
|
docker exec -i central-mariadb mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;"
|
||||||
|
|
||||||
|
## Enter application
|
||||||
|
|
||||||
|
docker compose exec -it application sh
|
||||||
|
|
||||||
|
|
||||||
|
## debugging
|
||||||
|
|
||||||
|
## Check environment variables
|
||||||
|
docker compose exec -it application printenv
|
||||||
|
|
||||||
|
ls -la /var/lib/docker/volumes/friendica_data/_data/
|
||||||
|
|
||||||
|
## autoinstall
|
||||||
|
docker compose exec --user www-data -it application bin/console autoinstall
|
||||||
|
|
||||||
|
## reinitialisation
|
||||||
|
|
||||||
|
### docker
|
||||||
|
|
||||||
|
### full
|
||||||
|
docker-compose up -d --force-recreate && sleep 2; docker compose exec --user www-data -it application bin/console autoinstall;
|
||||||
|
|
||||||
|
### info
|
||||||
|
```bash
|
||||||
|
cat /var/lib/docker/volumes/friendica_data/_data/config/local.config.php
|
||||||
|
## Check environment variables
|
||||||
|
docker compose exec -it application printenv
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## More information
|
## More information
|
||||||
- https://hub.docker.com/_/friendica
|
- https://hub.docker.com/_/friendica
|
||||||
|
- https://wiki.friendi.ca/docs/install
|
@ -3,8 +3,8 @@ services:
|
|||||||
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||||||
|
|
||||||
application:
|
application:
|
||||||
image: friendica
|
image: friendica/server
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
@ -15,19 +15,30 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
environment:
|
environment:
|
||||||
- FRIENDICA_URL="https://{{domain}}"
|
FRIENDICA_URL: https://{{domain}}
|
||||||
- FRIENDICA_ADMIN_MAIL={{administrator_email}}
|
HOSTNAME: {{domain}}
|
||||||
- MYSQL_HOST={{database_host}}:3306
|
FRIENDICA_NO_VALIDATION: false
|
||||||
- MYSQL_DATABASE={{database_name}}
|
|
||||||
- MYSQL_USER={{database_username}}
|
# Debugging
|
||||||
- MYSQL_PASSWORD={{database_password}}
|
FRIENDICA_DEBUGGING: false
|
||||||
- SMTP={{system_email_host}}
|
# Database Configuration
|
||||||
- SMTP_DOMAIN={{ system_email_host }}
|
MYSQL_HOST: {{database_host}}:3306
|
||||||
- SMTP_PORT={{system_email_smtp_port}}
|
MYSQL_DATABASE: {{database_name}}
|
||||||
- SMTP_AUTH_USER={{system_email_username}}
|
MYSQL_USER: {{database_username}}
|
||||||
- SMTP_AUTH_PASS={{system_email_password}}
|
MYSQL_PASSWORD: {{database_password}}
|
||||||
- SMTP_STARTTLS={{system_email_start_tls}}
|
SMTP: {{system_email_host}}
|
||||||
- SMTP_FROM={{system_email_username}}
|
|
||||||
|
# Email Configuration
|
||||||
|
SMTP_DOMAIN: {{ system_email_host }}
|
||||||
|
SMTP_PORT: {{system_email_smtp_port}}
|
||||||
|
SMTP_AUTH_USER: {{system_email_username}}
|
||||||
|
SMTP_AUTH_PASS: {{system_email_password}}
|
||||||
|
SMTP_STARTTLS: {{system_email_start_tls}}
|
||||||
|
SMTP_FROM: {{system_email_username}}
|
||||||
|
|
||||||
|
# Administrator Credentials
|
||||||
|
FRIENDICA_ADMIN_MAIL: {{administrator_email}}
|
||||||
|
MAILNAME: {{administrator_email}}
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user