Skip to content

Xpirix/geosm-backend

 
 

Repository files navigation

run the server in prod

$ docker-compose -f docker-compose-prod.yaml build
$ docker-compose -f docker-compose-prod.yaml up - d
$ docker-compose -f docker-compose-prod.yaml exec web python manage.py  seedCustomStyle --settings=settings.prod
$ docker-compose -f docker-compose-prod.yaml exec web python manage.py createsuperuser --settings=settings.prod

Load OSM data

Import OSM data in foreign database import_osm.MD

Link the foreign and the local database

Edit import_foreign_osm_table.sql with the connection parameters of the foreign database and execute it :

$  docker-compose exec --user postgres db psql -d postgres -f /import_foreign_osm_table.sql 

Setup elasticsearch

docker-compose  exec web python manage.py search_index --rebuild --settings=settings.dev
$ docker-compose -f docker-compose-prod.yaml exec web python manage.py  search_index --rebuild --settings=settings.prod  

Load icons in prod

Load icons

$ docker-compose -f docker-compose-prod.yaml exec web python manage.py loaddata --settings=settings.prod  seed/icon.json

For kibana use

https://stackoverflow.com/questions/42385977/accessing-a-docker-container-from-another-container

docker run --network host --name kibana -e "ELASTICSEARCH_HOSTS=http://172.17.0.1:9200" -p 5601:5601 kibana:7.10.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.1%
  • QML 27.5%
  • Other 0.4%