Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to edit configuration in docker #70

Open
gabrieru opened this issue Jan 25, 2018 · 4 comments
Open

how to edit configuration in docker #70

gabrieru opened this issue Jan 25, 2018 · 4 comments

Comments

@gabrieru
Copy link

hello, recently i installed this in vmware machine in order to use locally. but i cant find information about how to configure the website in centos with docker.
where i can edit smtp for sending mails ?

@wavexx
Copy link
Member

wavexx commented Jan 27, 2018

Emails are sent using the localhost's "sendmail" command in php. @droberin can maybe help here?
I assume the docker image simply uses the local MTA, which tries to contact the smtp endpoints directly.

A good idea would be to install nullmailer directly in the docker image. Then expose the smarthost address for actual delivery.

@droberin
Copy link
Member

@gabrieru , the image has a default config replacement. Some of the values are already configurable through env vars. The dockerised version has its own github repository, we might need to mix them sooner or later.
Check this info: https://github.com/DownloadTicketService/dl-docker/blob/master/README.md
Also you can create your own configuration file.
If you already have one, just run docker container with using a volume to /app/config (for dir) or /app/confi/config.php (for config file only)
You may wanna copy the one inside the image, you can do:

docker create --name dl_config downloadticketservice/dl:VERSION
docker cp dl_config:/app/config/config.php $HOME/dl/config.php
docker rm dl_config

edit your $HOME/dl/config.php and then set run the container using this configuration file.
example:

docker run --name my_dl -v $HOME/dl/config.php:/app/config/config.php downloadticketservice/dl:0.18.1

@gabrieru
Copy link
Author

hello, sorry for take your time, what about cpanel or centos web panel, it can be installed easily?

@wavexx
Copy link
Member

wavexx commented Mar 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants