PhpmyAdmin+MariaDB+Discourse

Currently reading
PhpmyAdmin+MariaDB+Discourse

8
1
NAS
DS415+
Hi guys,
Want to run discourse forum on my NAS as a pet project.
So I want to install it all with the help of Docker.
1. I installed MariaDB first with the additional variable in Environment: MYSQL_ROOT_PASSWORD. And ports 3307:3306. Container works well.
2. Want to connect it with PhpMyAdmin but container crushes. Should I need to type new variables in Environment or Link section to Phpmyadmin container?
I changed only ports to 8080:80. Any suggestions?
 
Really appreciate your help, Rusty.
At the moment have this stuff. Also I opened port for phpmyadmin ( not sure if I really need to do this)
 

Attachments

  • not found.png
    not found.png
    22.6 KB · Views: 55
  • opened port.png
    opened port.png
    11.6 KB · Views: 53
Internally no, there is no need to open up the port. If you are using the official phpmyadmin image, I'm not sure why are you using /phpmyadmin after the port? In my case, I don't and I land on the page just fine.

Can you show your docker container settings for both SQL/maria and myadmin side? Or are you using Maria/sql installation via Package Center and not in Docker?
 
Thanks, now it works!
I'm using both MariaDB and PhpMyAdmin in Docker.
Are memory limits OK for containers?
 

Attachments

  • phpmyadmin.png
    phpmyadmin.png
    383.4 KB · Views: 111
  • mariadb 1.png
    mariadb 1.png
    347.6 KB · Views: 111
  • mariadb 2.png
    mariadb 2.png
    285.1 KB · Views: 105
Faced another issue :)
I think I didn't connect mariadb to discourse and discourse ports are mixed? Right?
On the other hand, terminal in discourse container works
 

Attachments

  • discourse.png
    discourse.png
    246.4 KB · Views: 57
  • discourse 1.png
    discourse 1.png
    86.8 KB · Views: 58
I think I didn't connect mariadb to discourse and discourse ports are mixed? Right?
Didn't connect it? What the process of connecting it? Via config file, or via instalation wizard using the browser? Ports are fine, if you want to use those values. The main thing is to not touch the values on the right hand side.
 
At this moment I have the next...
It will work via Mailgun ( updated dns settings with mailgun data) and putted synology IP address as forum. domain.com.
 

Attachments

  • syno.png
    syno.png
    288.2 KB · Views: 35
@Shadow whats your sql and myadmin docker configuration (if you are running them via docker)?

Here is the MariaDB config:

1589628858130.png


1589628888456.png


Command executed:
docker run --name mariadb2 --hostname mariadb2 --network physical_network_noproxy --ip 192.168.1.200 --dns 192.168.1.194 -v /volume1/docker/mariadb2:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=*** -e MYSQL_DATABASE=vlnet -d mariadb:latest


And here the PHPMyAdmin config:
1589628981487.png


1589629040270.png


1589629093715.png


Command executed:
docker run -d --name phpmyadmin --hostname phpmyadmin --network physical_network_noproxy --ip 192.168.1.199 --dns 192.168.1.194 -v /volume1/docker/PHPMyAdmin:/etc/phpmyadmin/ --link mariadb2:vlnet -e PMA_USER=root -e PMA_PASSWORD=*** -e MYSQL_ROOT_PASSWORD=*** -e PMA_ABSOLUTE_URI=De domeinnaam Mydomain.nl is te koop. -e PMA_PORT=3306 -e PMA_HOST=mariadb2.MYDOMAIN.nl phpmyadmin/phpmyadmin:latest

Both dockers are connected to a macvlan network, so they have their own IP addresses:

1589629256875.png


And is pingable, even using DNS address:
1589629525137.png
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top