openmaptiles/docker-compose.yml

120 wiersze
2.6 KiB
YAML

version: "2"
volumes:
pgdata:
cache:
services:
postgres:
image: "openmaptiles/postgis:2.3"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- postgres_conn
ports:
- "5432"
env_file: .env
import-natural-earth:
image: "openmaptiles/import-natural-earth:1.2"
env_file: .env
networks:
- postgres_conn
import-water:
image: "openmaptiles/import-water:0.2"
env_file: .env
networks:
- postgres_conn
import-lakelines:
image: "openmaptiles/import-lakelines:0.9"
env_file: .env
networks:
- postgres_conn
import-osm:
image: "openmaptiles/import-osm:0.3"
env_file: .env
environment:
DIFF_MODE: ${DIFF_MODE}
networks:
- postgres_conn
volumes:
- ./data:/import
- ./build:/mapping
- cache:/cache
import-osmborder:
image: "openmaptiles/import-osmborder:0.2"
env_file: .env
networks:
- postgres_conn
import-osm-diff:
image: "openmaptiles/import-osm:latest"
env_file: .env
command: ./import_diff.sh
environment:
DIFF_MODE: ${DIFF_MODE}
networks:
- postgres_conn
volumes:
- ./data:/import
- ./build:/mapping
- cache:/cache
update-osm:
image: "openmaptiles/import-osm:latest"
env_file: .env
environment:
DIFF_MODE: ${DIFF_MODE}
command: ./import_update.sh
networks:
- postgres_conn
volumes:
- ./data:/import
- ./build:/mapping
- cache:/cache
import-sql:
image: "openmaptiles/import-sql:0.1"
env_file: .env
networks:
- postgres_conn
volumes:
- ./build:/sql
openmaptiles-tools:
image: "openmaptiles/openmaptiles-tools:latest"
env_file: .env
networks:
- postgres_conn
volumes:
- .:/tileset
- ./build:/sql
mapbox-studio:
image: "osm2vectortiles/mapbox-studio"
volumes:
- ./build/openmaptiles.tm2source:/projects/openmaptiles.tm2source
networks:
- postgres_conn
ports:
- "3000:3000"
generate-changed-vectortiles:
image: "openmaptiles/generate-vectortiles:0.1"
command: ./export-list.sh
volumes:
- ./data:/export
- ./build/openmaptiles.tm2source:/tm2source
networks:
- postgres_conn
env_file: .env
generate-vectortiles:
image: "openmaptiles/generate-vectortiles:0.1"
volumes:
- ./data:/export
- ./build/openmaptiles.tm2source:/tm2source
networks:
- postgres_conn
env_file: .env
environment:
#BBOX: "8.25,46.97,9.58,47.52"
#BBOX: "5.97,45.75,10.7,47.72"
BBOX: ${BBOX}
MIN_ZOOM: ${MIN_ZOOM}
MAX_ZOOM: ${MAX_ZOOM}
networks:
postgres_conn:
driver: bridge