How did you set it up? Docker compose? Can you post your config?
Friendica
Overview:
All things about the Facebook alternative Friendica that began in 2014. Often called the fedi swiss army knife as it comes with many features.
Currently only Android and Sailfish have apps.
👉Recommended Instance Spotlight:
🔵Related:
💰Buying and Selling:
!flohmarkt@lemmy.ca
💬Messager:
!matrix@programming.dev
📷Instagram Alternative:
!pixelfed@lemmy.world
🚫Boycott Facebook
!demeta@programming.dev
👀Privacy:
!privacy@lemmy.dbzer0.com
Thank you for the help. Here is the last set of configurations that I was running.
Edit: this is running on my TrueNas server.
networks:
maria-db-network:
external: True
services:
friendica:
build: /mnt/MainStorage/apps/friendica/config/app
environment:
- FRIENDICA_ADMIN_MAIL=<admin email>
- FRIENDICA_TZ=America/Chicago
- FRIENDICA_LANG=en-US
- FRIENDICA_URL=https://friendica.michaeldileo.org/
- FRIENDICA_SITENAME=Michael DiLeo's Friendica
- SMTP=<the smtp>
- SMTP_DOMAIN=<smtp domain
- SMTP_FROM=admin
- SMTP_AUTH_USER=<le user>
- SMTP_AUTH_PASS=<auth pass>
- SMTP_TLS=true
- SMTP_STARTTLS=true
- MYSQL_PASSWORD=<db pass>
- MYSQL_DATABASE=friendica
- MYSQL_USER=friendica
- MYSQL_HOST=mariadb
- MYSQL_PORT=3306
image: friendica
networks:
- maria-db-network
ports:
- '30110:80'
volumes:
- /mnt/MainStorage/apps/friendica/data:/var/www/html
- /mnt/MainStorage/apps/friendica/config/app:/app
addon.config.php file:
<?php
return [
'system' => [
'cache_driver' => 'redis',
'lock_driver' => 'redis',
'redis_host' => 'redis',
'pidfile' => '/var/run/friendica.pid',
]
];
docker file in the config folder
FROM friendica:friendica
RUN mkdir -p /usr/src/config
COPY addon.config.php /usr/src/config/
Now that I'm looking at it again, I wonder if I can get rid of some of this stuff 🤔
My limited knowledge of compose makes me think that the MYSQL_HOST is not resolving mariadb because the entire service is missing from the compose file.
If you add the mariadb container as another service in this compose do things start working?
It didn't really change when I put the db in the same compose file. I have them on the same docker network, so any container can reference any other container by its name, in this case mariadb
and access any ports, not just the ones that are exposed.
Evidence for this working is that MariaDB is logging the rejected connection attempts.
Any more info in the logging on why the attempt was rejected?
Unfortunately no, it's just one log line over and over. At some point it did have the username and IP, but it usually contains neither.