MySQL question linking to containers

  • Hello,


    I'm Sebastian and I'm new here because I build my first NAS two days ago. I'm using OMV4 and installed the OMV extras. Also I'm running a mysql Database, zoneminder and owncloud in a seperate docker container. All works fine.
    But now I have an important question because I'm new in this.


    At first I installed owncloud with the SQL lite database. Now I want to try MySQL because sql lite can cause some performance problems.
    I use a mysql database for zoneminder. Can I use the same database for owncloud? Or is it better to create a seperate database for owncloud?
    Which localhost do I have to chose in the owncloud installation? My IP adress:3306? Or do I have to map the port to another real port per port forwarding at first?


    Than you for your help. Answers in German are also welcome.

    • Offizieller Beitrag

    I am not using owncloud/MySQL, but nextcloud/mariadb. If they are (still) working similar.....


    Or is it better to create a seperate database for owncloud?

    I would create another instance of the same image. So owncloud has its own database. The container of owncloud and database have to join the same network.

    Which localhost do I have to chose in the owncloud installation?

    The name of the database.


    Here is how to setup nextcloud using docker-compose. Might be helpful also for owncloud
    [How-To] Nextcloud with Letsencrypt using OMV and docker-compose

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!