[SHARE-746][Improvement] Change ports for rabbitmq, postgres, and elasticsearch #629
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Make it easier to have both SHARE and the OSF running locally.
Changes
Added 30,000 to all SHARE services ports:
5432
-->35432
9200
-->39200
5672
-->35672
4200
-->34200
To run the server locally (not in docker):
python manage.py runlocalserver
instead ofpython manage.py runserver
.To run the server locally (not in docker) would need to set a local env var to make'PORT': os.environ.get('DATABASE_PORT', '5432'),
35432
insettings.py
. And runpython manage.py runlocalserver
instead ofpython manage.py runserver
.Related PR: CenterForOpenScience/ember-share#191
This could be done in other ways:
Side effects
Need to make sure all environment variables are defined on staging/production.
Will require some changes to staging/production. Also changes to quay images.Could just have a separate docker-compose.yml for local though?Ticket
https://openscience.atlassian.net/browse/SHARE-746