-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docker-compose straight into restarting #37
Comments
listmonk needs to connect to a Postgres database to boot. Have you set that up? These may be of help: |
Thanks for the quick response. I have a PostgreSQL database already setup with other services. Based on comment #25, would this be the correct configuration of the volumes for the config.toml file?
Thanks again. |
@matthewfurr You're using Anyway, the docker-compose config is also wrong since you've a |
@mr-karan, that is correct and that is why I am asking how I can edit the config.toml if the container is always restarting? It goes straight into restarting once it has been started. Therefore, I cannot sh into the container to edit to config.toml and use my Postgres hostname/user/etc... This is why I started this issue. The docker-compose file is fine. I wouldn't even be able to start the container if it was missing the Postgres service. I didn't think it was necessary to post the entire file with every service I have running. I removed the irrelevant services before posting what you see above. Can you confirm that I have the correct configuration for volumes if I want to make config.toml accessible on my host machine? |
Since you're mounting the
Yep and that's how it should be.
Got it. Since you hadn't mentioned that it's only a portion, I assumed incorrectly.
Yes looks fine, you just need to edit this file from your host machine with correct config. |
@mr-karan, I haven't been able to successfully create the mount. I got a lot of errors mounting the volumes with my compose file above. So I made the changes you see below:
It is still trying to access the same demo database. Thoughts? |
Your source and target is opposite. Source is path on the host and target is the path inside container. |
I'm using the following for my docker-compse.yml file, however, it is still trying to use the demo-db database. Please note that I haven't posted the entire file. Thoughts?
|
So basically edit your
And edit the file on host Hope that helps. I am closing this issue since it's not a bug in listmonk but with your config. |
@mr-karan, I made the changes you suggested above. However, docker gives me the following error:
|
docker-compose equivalent:
|
I'm using docker-compose to start and stop my containers. As soon as listmonk is starting it has a status of "Restarting (1) Less than a second ago". Logs output something along the lines of
... main.go:112 reading config config.toml ...main.go:236 error connecting to DB dial tcp lookup demo-db on 127.0.0.11:53 no such host
I am unable to shell into the container and make adjustments to the config.toml because it is restarting. How should I proceed?
The text was updated successfully, but these errors were encountered: