Configurable devevelopment port & documentation updates#6234
Conversation
|
There are two different docs on using docker with TM, but since docker wasn't working, I could update and merge the two docs. |
|
Where is the second doc? I couldn't find it. I found a guide for installing TM via docker for deployment, but no complete guide for running via docker during development. |
|
one is in docs-old, the other in in an old PR from Outreachy last year. I'm trying to get rid of docs-old by updating the docs, and moving them all to docs. Once I can get docker to work, I can merge and update a single doc. |
|
The old one I was planning to merge in is here: #5621. You're welcome to update a doc on docker usage for TM. :-) |
|
Looks fine to me - that one is for deployment specifically though. I know they are similar, but we need a doc for how to deploy, and a doc for how to develop using docker. |
|
For a doc on docker, I was thinking about a simple howto user guide. Basically an interested contributor should be able to clone the TM git repo, run docker-compose, and try TM in a self-hosted environment. I do this all the time when evaluating other projects, and if it doesn't work out of the box, that ends the evaluation most of the time. |
|
|
To do that I think we should just update the Then change the port binded to traefik by default to any >1024. After that a user could simply: git clone https://github.com/hotosm/tasking-manager
cp example.env tasking-manager.env
docker compose up -d |
|
I like making it really easy for people to download and evaluate TM locally using docker. |
|
I will make another PR (next week) updating as above & adding some info to the docs then 👍 |

Problem
Solution
TM_DEV_PORTvariable to the dotenv options, so the port can be configured.tm-to prevent conflict with other tools that may have containers namedbackendandfrontend.Context
2024-02-02 15:35 Update/Edit: