upgrade osm-tile-server
This commit is contained in:
parent
80a3b4c8f5
commit
bb1cf507ec
1 changed files with 9 additions and 9 deletions
|
@ -2,11 +2,11 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:13-alpine
|
image: postgres:16
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/db/pgdata:/var/lib/postgresql/data/"
|
- "./data/db/pgdata:/var/lib/postgresql/data/"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.prod
|
- ./.env
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
@ -15,7 +15,7 @@ services:
|
||||||
#volumes:
|
#volumes:
|
||||||
# - "./data/dbadmin:/var/lib/pgadmin"
|
# - "./data/dbadmin:/var/lib/pgadmin"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.prod
|
- ./.env
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
@ -24,28 +24,28 @@ services:
|
||||||
flask:
|
flask:
|
||||||
build:
|
build:
|
||||||
context: ./flask
|
context: ./flask
|
||||||
dockerfile: Dockerfile.prod
|
dockerfile: Dockerfile
|
||||||
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
||||||
expose:
|
expose:
|
||||||
- 5000
|
- 5000
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.prod
|
- ./.env
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
osmtile:
|
osmtile:
|
||||||
image: "overv/openstreetmap-tile-server:latest"
|
image: overv/openstreetmap-tile-server:2.3.0
|
||||||
hostname: osmtile
|
hostname: osmtile
|
||||||
environment:
|
environment:
|
||||||
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
|
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
|
||||||
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
|
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/osmtile/pgdata:/var/lib/postgresql/12/main"
|
- "./data/osmtile:/data/database/
|
||||||
|
command: "run"
|
||||||
|
#command: "import"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
#entrypoint: "/run.sh import"
|
|
||||||
#entrypoint: "/run.sh run"
|
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
internal: {}
|
internal: {}
|
||||||
|
|
Loading…
Reference in a new issue