Comments (13)
Just put any of the env variables mentioned on the documentation there instead of the environment: section of the docker-compose.yml file.
from docker-otrs.
Here's the docker-compose file https://github.com/juanluisbaptiste/docker-otrs/blob/master/docker-compose-prod.yml
from docker-otrs.
Thanks for that, I did not know you could just drop the variables directly into the .yml file for your docker containers.
The containers now start however I appear to have a problem with the OTRS container being able to connect to the db container
running " docker-compose up " results in
Starting dockerotrs_data-otrs_1
Starting dockerotrs_data_1
Starting dockerotrs_mariadb_1
Starting dockerotrs_otrs_1
Attaching to dockerotrs_data-otrs_1, dockerotrs_data_1, dockerotrs_mariadb_1, dockerotrs_otrs_1
mariadb_1 | 161002 11:20:53 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
mariadb_1 | 161002 11:20:53 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
dockerotrs_data-otrs_1 exited with code 0
otrs_1 | [INFO] Enter
otrs_1 | [WARNING] DB server still isn't up, sleeping a little bit ...
dockerotrs_data_1 exited with code 0
otrs_1 | [INFO] Enter
otrs_1 | [WARNING] DB server still isn't up, sleeping a little bit ...
otrs_1 | [INFO] Enter
otrs_1 | [WARNING] DB server still isn't up, sleeping a little bit ...
otrs_1 | [INFO] Enter
otrs_1 | [WARNING] DB server still isn't up, sleeping a little bit ...
here is my docker-compose.yml file (don't worry about the passwords etc in it I will change those once I have it working)
https://gist.github.com/shadowguardian507-irl/62c2b172248267d2fc8e30810f6054b8
note the docker-compose.yml file is the only thing I have changed all the rest of the files are exactly as provided in the repo.
note the db container does come up as I can connect to it (from the docker host) using mysql -u root -h 172.18.0.3 (where the IP is found by using docker inspect on the DB container)
from docker-otrs.
Sadly i also never got it up and running. Everytime there's something wrong with the database regardless if is set a password or other env_variables.... :-(
Seems to have something to do with $mysqlcmd in run.sh or something....
I'll try to build my own instance....
from docker-otrs.
Try this otrs-setup.env
OTRS_HOSTNAME=support.yourcompany.com
[email protected]
OTRS_ORGANIZATION="Your Company"
OTRS_ROOT_PASSWORD=changeme
MYSQL_ROOT_PASSWORD=changeme
OTRS_DB_PASSWORD=changeme
Those I think are the minimum required parameters, you can put them instead directly on the docker-compose.yml under environment: too if you want.
from docker-otrs.
sorry for the long delay in response.
I have tried a fresh copy of from your repo using the otrs-setup.env file you provided however I now get this error/behavior (the only change I made to the yml was to disable the smtp container)
from docker-otrs.
I recently added support for host mounted volumes, that error occurs on that case, and it clearly is telling you what the problem is: the directory on the host where the database container is mounting the mysql database directory has the wrong permissions. Do a
chown 27 /path/to/dbdir
I need to update the README.MD file to tell this.
from docker-otrs.
Thanks for that, changing the permissions fixed the issue with the mysql db
eg 'chmod 777 ./volumes/mysql'
May I suggest that the docker-compose.yml and docker-compose-prod.yml file be changed so that their mariadb sections are like this
mariadb:
build:
context: mariadb
expose:
- "3306"
volumes_from:
- data
env_file: otrs-setup.env
rather than this
mariadb:
build:
context: mariadb
expose:
- "3306"
volumes_from:
- data
environment:
MYSQL_ROOT_PASSWORD: changeme
so that changing the 'MYSQL_ROOT_PASSWORD' parameter in the otrs-setup.env applies to both the otrs and mariadb containers
from docker-otrs.
Well I leave the variables inside the environment: section because its more clear for new comers. Any experienced user with docker will know how to use an env file anyways.
from docker-otrs.
Sorry, I misunderstood you, you are right, looking at the current docker-compose-prod.yml file I see there is an inconsistency with that, I'll fix it.
from docker-otrs.
I also updated the README.md file and added some info about the host-mounted containers.
from docker-otrs.
would be very nice to add the example otrs-setup.env to the github project file
from docker-otrs.
Added an example file named .env.example, se the README file for details.
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.