SHARE icon indicating copy to clipboard operation
SHARE copied to clipboard

[SHARE-746][Improvement] Change ports for rabbitmq, postgres, and elasticsearch

Open laurenbarker opened this issue 8 years ago • 1 comments

Purpose

Make it easier to have both SHARE and the OSF running locally.

Changes

Added 30,000 to all SHARE services ports:

  • postgres: 5432 --> 35432
  • elasticsearch: 9200 --> 39200
  • rabbitmq: 5672 --> 35672
  • web: 4200 -->34200

To run the server locally (not in docker): python manage.py runlocalserver instead of python 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 in settings.py. And run python manage.py runlocalserver instead of python manage.py runserver.~~

Related PR: https://github.com/CenterForOpenScience/ember-share/pull/191

This could be done in other ways:

  • Adding SHARE to OSF docker-compose
    • more likely to be forgotten about/get out of date
  • Using the same containers as OSF
    • I don't think this would work very well from what little I attempted
    • would depend on us using the same images as the OSF

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

laurenbarker avatar Apr 19 '17 15:04 laurenbarker

@aaxelb, conflicts resolved. The docs/README.d/sharectl server need to be updated though.

laurenbarker avatar Nov 09 '17 21:11 laurenbarker