Switch to networks

pull/162/head
stirringhalo 2017-02-01 16:34:17 -05:00
rodzic 4bb581fc28
commit 9566478919
1 zmienionych plików z 30 dodań i 24 usunięć

Wyświetl plik

@ -7,31 +7,33 @@ services:
image: "openmaptiles/postgis:2.3" image: "openmaptiles/postgis:2.3"
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
networks:
- postgres_conn
ports: ports:
- "5432" - "5432"
env_file: .env env_file: .env
import-natural-earth: import-natural-earth:
image: "openmaptiles/import-natural-earth:1.2" image: "openmaptiles/import-natural-earth:1.2"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
import-water: import-water:
image: "openmaptiles/import-water:0.2" image: "openmaptiles/import-water:0.2"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
import-lakelines: import-lakelines:
image: "openmaptiles/import-lakelines:0.9" image: "openmaptiles/import-lakelines:0.9"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
import-osm: import-osm:
image: "openmaptiles/import-osm:0.3" image: "openmaptiles/import-osm:0.3"
env_file: .env env_file: .env
environment: environment:
DIFF_MODE: ${DIFF_MODE} DIFF_MODE: ${DIFF_MODE}
links: networks:
- postgres - postgres_conn
volumes: volumes:
- ./data:/import - ./data:/import
- ./build:/mapping - ./build:/mapping
@ -39,16 +41,16 @@ services:
import-osmborder: import-osmborder:
image: "openmaptiles/import-osmborder:0.2" image: "openmaptiles/import-osmborder:0.2"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
import-osm-diff: import-osm-diff:
image: "openmaptiles/import-osm:latest" image: "openmaptiles/import-osm:latest"
env_file: .env env_file: .env
command: ./import_diff.sh command: ./import_diff.sh
environment: environment:
DIFF_MODE: ${DIFF_MODE} DIFF_MODE: ${DIFF_MODE}
links: networks:
- postgres - postgres_conn
volumes: volumes:
- ./data:/import - ./data:/import
- ./build:/mapping - ./build:/mapping
@ -59,8 +61,8 @@ services:
environment: environment:
DIFF_MODE: ${DIFF_MODE} DIFF_MODE: ${DIFF_MODE}
command: ./import_update.sh command: ./import_update.sh
links: networks:
- postgres - postgres_conn
volumes: volumes:
- ./data:/import - ./data:/import
- ./build:/mapping - ./build:/mapping
@ -68,15 +70,15 @@ services:
import-sql: import-sql:
image: "openmaptiles/import-sql:0.1" image: "openmaptiles/import-sql:0.1"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
volumes: volumes:
- ./build:/sql - ./build:/sql
openmaptiles-tools: openmaptiles-tools:
image: "openmaptiles/openmaptiles-tools:latest" image: "openmaptiles/openmaptiles-tools:latest"
env_file: .env env_file: .env
links: networks:
- postgres - postgres_conn
volumes: volumes:
- .:/tileset - .:/tileset
- ./build:/sql - ./build:/sql
@ -84,8 +86,8 @@ services:
image: "osm2vectortiles/mapbox-studio" image: "osm2vectortiles/mapbox-studio"
volumes: volumes:
- ./build/openmaptiles.tm2source:/projects/openmaptiles.tm2source - ./build/openmaptiles.tm2source:/projects/openmaptiles.tm2source
links: networks:
- postgres:db - postgres_conn
ports: ports:
- "3000:3000" - "3000:3000"
generate-changed-vectortiles: generate-changed-vectortiles:
@ -94,16 +96,16 @@ services:
volumes: volumes:
- ./data:/export - ./data:/export
- ./build/openmaptiles.tm2source:/tm2source - ./build/openmaptiles.tm2source:/tm2source
links: networks:
- postgres:postgres - postgres_conn
env_file: .env env_file: .env
generate-vectortiles: generate-vectortiles:
image: "openmaptiles/generate-vectortiles:0.1" image: "openmaptiles/generate-vectortiles:0.1"
volumes: volumes:
- ./data:/export - ./data:/export
- ./build/openmaptiles.tm2source:/tm2source - ./build/openmaptiles.tm2source:/tm2source
links: networks:
- postgres:postgres - postgres_conn
env_file: .env env_file: .env
environment: environment:
#BBOX: "8.25,46.97,9.58,47.52" #BBOX: "8.25,46.97,9.58,47.52"
@ -111,3 +113,7 @@ services:
BBOX: ${BBOX} BBOX: ${BBOX}
MIN_ZOOM: ${MIN_ZOOM} MIN_ZOOM: ${MIN_ZOOM}
MAX_ZOOM: ${MAX_ZOOM} MAX_ZOOM: ${MAX_ZOOM}
networks:
postgres_conn:
driver: bridge