Closed breakingflower closed 3 years ago
Hi!
As far as I know, MySQL/MariaDB is the only Database-System that is supported by HumHub. You can try to use one of the community-built MariaDB images (e.g https://hub.docker.com/r/jsurf/rpi-mariadb). If you are using something like Raspian or another OS (maybe your system is no RPi) it might be possible to install MariaDB or MySQL directly on the System and just use it.
Just to avoid confusion: HumHub was written for MySQL and is therefore compatible with MariaDB because it is "just" the OpenSource variant of MySQL. PostgreSQL is a completely different DB System and not fully compatible with MySQL. HumHub is using a framework that should make it possible to connect it to non-MySQL DBs but that is not tested and will cause some problems. Also is our container currently very focused on MySQL. If you really need Postgres Support we can add it but maybe using MariaDB is easier for you.
Cheers
Hi!
As far as I know, MySQL/MariaDB is the only Database-System that is supported by HumHub. You can try to use one of the community-built MariaDB images (e.g https://hub.docker.com/r/jsurf/rpi-mariadb). If you are using something like Raspian or another OS (maybe your system is no RPi) it might be possible to install MariaDB or MySQL directly on the System and just use it.
Just to avoid confusion: HumHub was written for MySQL and is therefore compatible with MariaDB because it is "just" the OpenSource variant of MySQL. PostgreSQL is a completely different DB System and not fully compatible with MySQL. HumHub is using a framework that should make it possible to connect it to non-MySQL DBs but that is not tested and will cause some problems. Also is our container currently very focused on MySQL. If you really need Postgres Support we can add it but maybe using MariaDB is easier for you.
Cheers
MySQL mariadb/innodb are the only databases that are supported from my understanding so using PostgreSQL or any other would be almost impossible without editing the core to support it
For future people stumbling upon this thread, I've managed to solve it using the tip from @mriedmann by using a user created mariadb image. In the end my compose file looks like this:
humhub:
container_name: humhub
image: fremmen/humhub:armv7
## Docker-compose build humhub does not work due to
# npm install error - getaddrinfo EAI_AGAIN
# build locally by
# git clone https://github.com/mriedmann/humhub-docker.git && cd humhub-docker
# docker build . --network host -t fremmen/humhub:armv7
# the above succeeds.
build: https://github.com/mriedmann/humhub-docker.git
links:
- "humhubdb:db"
ports:
- "${HUMHUB_PORT}:80"
volumes:
- ${APPDATA_ROOT}/humhub/config:/var/www/localhost/htdocs/protected/config
- ${APPDATA_ROOT}/humhub/uploads:/var/www/localhost/htdocs/uploads
- ${APPDATA_ROOT}/humhub/modules:/var/www/localhost/htdocs/protected/modules
environment:
- HUMHUB_DB_HOST=humhubdb
- HUMHUB_DB_NAME=humhub
- HUMHUB_DB_USER=humhub
- HUMHUB_DB_PASSWORD=${HUMHUB_DB_USER_PW}
depends_on:
- humhubdb
humhubdb:
container_name: humhubdb
image: tobi312/rpi-mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${HUMHUB_DB_ROOT_PW}
- MYSQL_DATABASE=humhub
- MYSQL_USER=humhub
- MYSQL_PASSWORD=${HUMHUB_DB_USER_PW}
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- humhub_db:/var/lib/mysql
ports:
- "${HUMHUB_DB_PORT}:5432"
I want to build from your repository and run on ARMv7.
Useful Information
Build steps
Only the docker for amd64 is available, so we have to build locally.
Building from docker-compose
Local build fails if done from compose file, using the default compose file.
Building locally
The option
--network host
was added due to anpm install error - getaddrinfo EAI_AGAIN
showing up without it and following this issue. The build succeeds.Running
Humhub requires a database, but there is no MySQL docker for armv7. I tried the following setup:
But I get the following message
Is
postgres
not supported? What can I do to get it working witharmv7
?