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 swarm and links #50

Closed
chabad360 opened this issue Oct 4, 2018 · 9 comments
Closed

Docker swarm and links #50

chabad360 opened this issue Oct 4, 2018 · 9 comments

Comments

@chabad360
Copy link
Contributor

As of right now, the current compose file doesn't work too well with docker swarm for a few reasons, mainly because it uses Compose File Version 2, not Version 3, and because it uses links. I have tried removing the links, but then frappe keeps crashing during setup. Does someone know what we need links for?

@Thunderbottom
Copy link
Contributor

so we have multiple different containers for database and frappe itself. we use links to resolve inter container dependencies. I am unsure if it works without linking though. Have you tried (not in the swarm) that it works without links?

@chabad360
Copy link
Contributor Author

chabad360 commented Oct 5, 2018

Frappe refuses to finish the GUI setup, without links.

What inter-container dependencies?

@Thunderbottom
Copy link
Contributor

the databases are in different containers than Frappe, so they're an inter-container dependencies for the Frappe container.

@chabad360
Copy link
Contributor Author

That i figured, but what are the actual dependencies? Maybe there are work-arounds, something?

@Thunderbottom
Copy link
Contributor

I am unsure, best is to let it be I guess? I will figure something out over the weekend.

@chabad360
Copy link
Contributor Author

Cool. If I get a chance too, I'll look into it too.

@chabad360
Copy link
Contributor Author

I think it's only needed for configuring what the ip for redis and MySQL is on.

Which can be replaced by a defined network.

@pipech
Copy link

pipech commented Jan 22, 2019

Hi, you should check out this yml file, I using my own erpnext image but with a little tweak it should works with official docker image too.
This works with docker stack and should be work using docker swarm too.

https://github.com/pipech/erpnext-docker-debian/blob/master/production_setup/prd.yml

@chabad360
Copy link
Contributor Author

@pipech thanks for that, I see quite a few things that I'll take from your yml and add to mine.

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