upgrade osm-tile-server

This commit is contained in:
deflax 2023-11-17 18:20:39 -05:00
parent 80a3b4c8f5
commit bb1cf507ec

View file

@ -2,11 +2,11 @@ version: '3'
services:
db:
image: postgres:13-alpine
image: postgres:16
volumes:
- "./data/db/pgdata:/var/lib/postgresql/data/"
env_file:
- ./.env.prod
- ./.env
restart: always
networks:
- internal
@ -15,7 +15,7 @@ services:
#volumes:
# - "./data/dbadmin:/var/lib/pgadmin"
env_file:
- ./.env.prod
- ./.env
restart: always
networks:
- internal
@ -24,28 +24,28 @@ services:
flask:
build:
context: ./flask
dockerfile: Dockerfile.prod
dockerfile: Dockerfile
command: gunicorn --bind 0.0.0.0:5000 manage:app
expose:
- 5000
env_file:
- ./.env.prod
- ./.env
networks:
- internal
depends_on:
- db
osmtile:
image: "overv/openstreetmap-tile-server:latest"
image: overv/openstreetmap-tile-server:2.3.0
hostname: osmtile
environment:
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
volumes:
- "./data/osmtile/pgdata:/var/lib/postgresql/12/main"
- "./data/osmtile:/data/database/
command: "run"
#command: "import"
networks:
- internal
#entrypoint: "/run.sh import"
#entrypoint: "/run.sh run"
restart: always
networks:
internal: {}