Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | None | 0 0
  1. version: '2.2'
  2.  
  3. volumes:
  4.  postgis-data:
  5.  
  6. services:
  7.  gunicorn_flask:
  8.   #network_mode: "host"
  9.   build: .
  10.   volumes:
  11.   - /home/ivan/osm-data:/deploy/app/osm
  12.   - ./ops_settings_docker.yml:/deploy/app/openpoiservice/server/ops_settings.yml
  13.   - ./categories_docker.yml:/deploy/app/openpoiservice/server/categories/categories.yml
  14.   ports:
  15.    - "8080:8080"
  16.   mem_limit: 28g
  17.   networks:
  18.    - poi_network
  19.  
  20.  # Don't forget to change the host name inside ops_settings_docker.yml by the one given to docker container.
  21.  # Also port should be set to 5432 (default value) inside the same file since they are on the same network
  22.  psql_postgis_db:
  23.   image: kartoza/postgis:11.0-2.5
  24.   volumes:
  25.    - postgis-data:/var/lib/postgresql
  26.   environment:
  27.    # If you need to create multiple database you can add coma separated databases eg gis,data
  28.    - POSTGRES_DB=gis
  29.    - POSTGRES_USER=gis_admin    # Here it's important to keep the same name as the one configured inside ops_settings_docker.yml
  30.    - POSTGRES_PASS=admin        # Here it's important to keep the same name as the one configured inside ops_settings_docker.yml
  31.    - POSTGRES_DBNAME=gis        # Here it's important to keep the same name as the one configured inside ops_settings_docker.yml
  32.    - ALLOW_IP_RANGE=0.0.0.0/0
  33.  
  34.   restart: on-failure
  35.   networks:
  36.    - poi_network
  37.  
  38. networks:
  39.  poi_network:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement