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

Docker compose issue #10

Closed
anistark opened this issue Jul 19, 2019 · 3 comments · Fixed by #12
Closed

Docker compose issue #10

anistark opened this issue Jul 19, 2019 · 3 comments · Fixed by #12

Comments

@anistark
Copy link

Tried setting up the project via docker.
Cloned, edited the config.toml file. And Updated data there.
Then ran the below and please find the response as well below.

➜ docker-compose up -d
Starting listmonk_db_1 ...
listmonk_demo-db_1 is up-to-date
Starting listmonk_db_1 ... error

ERROR: for listmonk_db_1  Cannot start service db: driver failed programming external connectivity on endpoint listmonk_db_1 (d1928b4afe6a4cfea6e6ac4e121ce983b95b29eb8b7473bb814fb09a469a09af): Bind for 0.0.0.0:9432 failed: port is already allocated

ERROR: for db  Cannot start service db: driver failed programming external connectivity on endpoint listmonk_db_1 (d1928b4afe6a4cfea6e6ac4e121ce983b95b29eb8b7473bb814fb09a469a09af): Bind for 0.0.0.0:9432 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

docker app is using 9432 by default.

How do I resolve this?

@mr-karan
Copy link
Collaborator

@anistark Thanks for reporting this!

docker-compose up -d actually starts all services mentioned in the docker-compose.yml file, and we have demo-db and db both listed there. So erroneously both the postgres containers are being launched together and that's why you see error: failed: port is already allocated for the second container.

  • Quick fix for this is docker-compose up -d app db which will not start the demo services.

  • Alternatively, you can also remove the demo services from your docker-compose file and use the docker-compose up -d command. 😄

I'll send a PR shortly for this to update the instructions in README.

@anistark
Copy link
Author

Ah, I see. I thought the demo-db is part of the process. Maybe initialise that on a separate port would do.

Just running docker-compose up -d app db works.

Btw, Great job with this project. Love the design. Kudos to both @knadh and @mr-karan :)

But, while testing most of my emails are going to spam folder. Any pointers to that?

@knadh
Copy link
Owner

knadh commented Jul 19, 2019

Thanks! Mail going to spam, that would depend on the reputation of your SMTP endpoint and the content of the mail.

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

Successfully merging a pull request may close this issue.

3 participants