Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker ENV not support #3

Open
pomazanbohdan opened this issue Aug 5, 2024 · 9 comments
Open

Docker ENV not support #3

pomazanbohdan opened this issue Aug 5, 2024 · 9 comments

Comments

@pomazanbohdan
Copy link

pomazanbohdan commented Aug 5, 2024

My container have env:
REDIS_HOST=flarum-redis

but "Connection refused [tcp://127.0.0.1:6379]"

Use https://github.com/crazy-max/docker-flarum
https://gitlab.xxlab.tech/xxlab/awesome-docker-compose/-/blob/master/flarum/docker-compose.yml?ref_type=heads

@DavideIadeluca
Copy link
Member

Can you please share the output of docker ps ?

You should see something along the lines of:

CONTAINER ID   IMAGE                          COMMAND                  CREATED      STATUS      PORTS                                            NAMES
83a0d46fe9b4   89grad/flarum-acme:1.8.70   "docker-entrypoint.s…"   5 days ago   Up 5 days                                                    acme-worker
5ab2886ae30f   89grad/flarum-acme:1.8.70   "docker-entrypoint.s…"   5 days ago   Up 5 days                                                    acme-php
f7ebc298dc59   89grad/flarum-acme:1.8.70   "docker-entrypoint.s…"   5 days ago   Up 5 days   0.0.0.0:8080->8888/tcp, 0.0.0.0:8081->8889/tcp   acme-nginx
0c0b6a49512b   redis:7                        "docker-entrypoint.s…"   6 days ago   Up 6 days   6379/tcp                                         acme-redis
860a5f5107f3   mariadb:10.2                   "docker-entrypoint.s…"   6 days ago   Up 6 days   0.0.0.0:3306->3306/tcp                           acme-database

@pomazanbohdan
Copy link
Author


NAME           IMAGE                        COMMAND                  SERVICE        CREATED             STATUS          PORTS
flarum         crazymax/flarum:latest       "/init"                  flarum         47 minutes ago      Up 17 minutes   8000/tcp
flarum-db      mariadb:latest               "docker-entrypoint.s…"   flarum-db      About an hour ago   Up 47 minutes   3306/tcp
flarum-redis   valkey/valkey:7-alpine3.20   "docker-entrypoint.s…"   flarum-redis   About an hour ago   Up 47 minutes   6379/tcp

@pomazanbohdan
Copy link
Author

I don't use port forwarding as I use traefik

@DavideIadeluca
Copy link
Member

DavideIadeluca commented Aug 5, 2024

Alright that seems to be looking okay, please share the extension settings at /admin#/extension/glowingblue-redis-setup. And just to double check, does your Forum run without this extension enabled?

@pomazanbohdan
Copy link
Author

pomazanbohdan commented Aug 5, 2024

Forum run without this extension enabled?

Okay, it's working.

I included all three options that were there.

Now when I enable the add-on, it gives me an error and I have to delete it to get the forum working again.

@DavideIadeluca
Copy link
Member

Please share the output of php flarum info

@pomazanbohdan
Copy link
Author


Flarum core: 1.8.5
PHP version: 8.2.18
MySQL version: 11.4.2-MariaDB-ubu2404
Loaded extensions: Core, date, libxml, pcre, zlib, filter, hash, json, random, readline, Reflection, SPL, session, ctype, curl, dom, fileinfo, gd, gmp, iconv, intl, mbstring, openssl, PDO, standard, SimpleXML, sodium, tokenizer, xml, xmlwriter, zip, exif, mysqlnd, Phar, pdo_mysql, uuid, Zend OPcache
+----------------------------------------+---------+--------+
| Flarum Extensions                      |         |        |
+----------------------------------------+---------+--------+
| ID                                     | Version | Commit |
+----------------------------------------+---------+--------+
| flarum-markdown                        | v1.8.0  |        |
| flarum-flags                           | v1.8.0  |        |
| askvortsov-rich-text                   | v2.1.7  |        |
| flarum-sticky                          | v1.8.0  |        |
| flarum-tags                            | v1.8.0  |        |
| flarum-lock                            | v1.8.0  |        |
| flarum-suspend                         | v1.8.1  |        |
| flarum-nicknames                       | v1.8.0  |        |
| flarum-approval                        | v1.8.1  |        |
| widayn-avatar-cropper                  | v0.1.2  |        |
| v17development-blog                    | v0.7.7  |        |
| kilowhat-audit-free                    | 1.7.0   |        |
| justoverclock-discussion-info          | 0.1.5   |        |
| justoverclock-composer-autocomplete    | 0.1.0   |        |
| justoverclock-best-answer-badge        | 0.1.0   |        |
| justoverclock-be-active-user-indicator | 0.1.0   |        |
| justoverclock-auto-post-count-badge    | 1.0.0   |        |
| ianm-boring-avatars                    | 1.0.0   |        |
| fof-byobu                              | 1.3.6   |        |
| fof-best-answer                        | 1.4.5   |        |
| fof-anti-spam                          | 1.1.2   |        |
| fof-analytics                          | 1.1.0   |        |
| flarum-subscriptions                   | v1.8.0  |        |
| flarum-statistics                      | v1.8.0  |        |
| flarum-mentions                        | v1.8.3  |        |
| flarum-likes                           | v1.8.0  |        |
| flarum-lang-ukrainian                  | v1.44.0 |        |
| flarum-extension-manager               | v1.0.3  |        |
| flarum-emoji                           | v1.8.0  |        |
| datlechin-add-like-controls            | v1.0.6  |        |
| blomstra-user-filter                   | 0.1.4   |        |
| askvortsov-auto-moderator              | v0.1.3  |        |
| acpl-mobile-tab                        | 1.4.4   |        |
+----------------------------------------+---------+--------+
Base URL: https://flarum.dottek.co
Installation path: /opt/flarum
Queue driver: sync
Session driver: file
Scheduler status: Ніколи не запускалося
Mail driver: mail
Debug mode: ON

Don't forget to turn off debug mode! It should never be turned on in a production system.

@DavideIadeluca
Copy link
Member

Can you try to install & enable https://github.com/blomstra/flarum-redis ? glowingblue/flarum-ext-redis-setup basically is just a wrapper of blomstra/flarum-redis in which features can be enabled/disabled in the UI. So if blomstra/flarum-redis doesn't work, I would suggest to create a new issue there

@pomazanbohdan
Copy link
Author

I still have it.
Yes, he probably doesn't have that option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants