GithubHelp home page GithubHelp logo

Comments (7)

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Hi,

Please post the error logs, the OTRS_DB_HOST var is working correctly, starting because its default value is mariadb:

[ -z "${OTRS_DB_HOST}" ] && OTRS_DB_HOST="mariadb"

And the it uses it to connect to the database server:

mysqlcmd="mysql -uroot -h ${OTRS_DB_HOST} -P ${OTRS_DB_PORT} -p${MYSQL_ROOT_PASSWORD} "

from docker-otrs.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Also the recommended way of running this container is using docker-compose with the provided docker-compose.yml file. It makes things much easier.

from docker-otrs.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Also the recommended way of running this container is using docker-compose with the provided docker-compose.yml file. It makes things much easier.
--

Thinking about it, I think this is the problem. There are a bunch of host volumes that you need to mount to save container configuration outside it, to tell you the truth I haven't tested this image in a long time without mounted volumes as it doesn't make sense in a production environment.

from docker-otrs.

markuman avatar markuman commented on July 28, 2024

Also the recommended way of running this container is using docker-compose with the provided docker-compose.yml file. It makes things much easier.

Yes, I understand, but I wanted to try to include this container in my existing container ecosystem, like - reuse the existing mariadb container.

Thinking about it, I think this is the problem. There are a bunch of host volumes that you need to mount to save container configuration outside it, ...

But - with or without host volumes - the difference is that the configuration is gone when the container is gone. This should be sufficient for a one-time test. But nevermind, I will try it later too.

from docker-otrs.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

Yes, I understand, but I wanted to try to include this container in my existing container ecosystem, like - reuse the existing mariadb container.

Why not just use external_links ?
https://docs.docker.com/compose/compose-file/#external_links

But - with or without host volumes - the difference is that the configuration is gone when the container is gone. This should be sufficient for a one-time test. But nevermind, I will try it later too.

That's the idea, but there is a setup code run to initialize the initial configuration on a mounted volume that I haven't tested it in a long time without the mounted volumes.

from docker-otrs.

markuman avatar markuman commented on July 28, 2024

Why not just use external_links ?

Because linking is deprecated and has no advantages over docker networks. https://docs.docker.com/network/links/

from docker-otrs.

juanluisbaptiste avatar juanluisbaptiste commented on July 28, 2024

If you are using docker networks then you could attach to your mariadb network.

from docker-otrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.