Comments (7)
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.
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.
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.
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.
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.
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.
If you are using docker networks then you could attach to your mariadb network.
from docker-otrs.
Related Issues (20)
- Bad exit status reported to docker HOT 11
- Service 'mariadb' failed to build: unable to find user HOT 3
- procmail routing HOT 10
- Migrating to Znuny HOT 43
- After restoring from standalone 6.0.29 calendar is not working HOT 2
- Changing Timezone to other than UTC corrupts code. HOT 4
- Docker-Images for otrs-mariadb with master-tag seem to be empty HOT 1
- Docker hub seems empty ... HOT 3
- [FEATURE] providing rsync for backups HOT 6
- Setting OTRS_DISABLE_EMAIL_FETCH=no does not re-enable email fetching HOT 3
- Minor version upgrade HOT 6
- provide Ubuntu 20.04 LTS image for otrs? HOT 1
- Feature: upgrade to znuny 6.3? HOT 3
- OTRS_HOSTNAME HOT 1
- upgrade 6.0.28 to 6.0.40 results in jquery errors HOT 16
- Outgoing Email Notifications HOT 1
- quoting of env-variables in /.backup.env is stripped, unexpected behaviour HOT 3
- otrs dockerfile
- Mounting local codebase on container
- vfailed: Can't connect to MySQL server on '127.0.0.1' (111) at /opt/otrs/Kernel/System/DB.pm line 205. otrs_1 | ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SystemConfigurationSyncManager-10 Perl: 5.16.3 OS: linux Time: Wed Feb 14 12:03:53 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-otrs.