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

Dockerizing for quick deployment #561

Open
almereyda opened this issue Mar 6, 2015 · 4 comments
Open

Dockerizing for quick deployment #561

almereyda opened this issue Mar 6, 2015 · 4 comments

Comments

@almereyda
Copy link

Last year I've unsuccessfully tried to Dockerize the OSM Tasking Manager 2 for quick deployment in changing environments.

The main problem was the dependency on some PostGIS dependencies, esp. in terms of splitting data and the web service into several containers.

I am filing this issue for documentary reasons.

This issue may relate to hotosm/hotosm-project-ideas#15

@chebizarro
Copy link

A better approach might be to break up the different components into separate containers and use Docker Compose to manage them. I am looking into it over the weekend, do you have any more specific details on what problems you had in your attempt?

@kriscarle
Copy link
Contributor

I have a working Docker setup in my fork at https://github.com/mapforenvironment/osm-tasking-manager2

I have 3 containers: postgres, web app, and a nginx reverse proxy gateway. Most of the settings are passed in via environment variables that are used to create the local.ini and production.ini dynamically as the container starts. The exception being the oauth consumer key/secret, which would need to be pulled out as a config.

Happy to submit a PR, but I think there are a few decisions to be made first regarding whether you want a single container or multiple, if it needs to be production ready (e.g. on port 80 instead of 6543) etc.

@almereyda
Copy link
Author

@kriscarle Thanks for responding back. And @chebizarro sorry for not having been aware of your answer.

I believe a loosely-coupled approach, i.e. with docker-compose as mentioned, suits most deployment scenarios most. This said I would suggest to create an extra repository for all Docker related files and folders and add an orchestration example with -compose.

Production and Development scenarios could then be represented with different *.yaml files.

@dbdean
Copy link

dbdean commented Aug 26, 2017

There is a pull request to make this work with docker at #980, it would be nice to see it merged, or at least get some feedback.

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

No branches or pull requests

5 participants