Skip to content

Commit

Permalink
Update container for tiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jul 5, 2024
1 parent 85e5050 commit cf9c368
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 38 deletions.
64 changes: 29 additions & 35 deletions compose/tiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,43 @@ services:
# # ######################################################
# # ### Tiler imposm for importing data
# # ######################################################
tiler-imposm:
image: osmseed-tiler-imposm:v1
build:
context: ../images/tiler-imposm
dockerfile: Dockerfile
volumes:
- ../data/tiler-imposm-data:/mnt/data
# - ../images/tiler-imposm:/osm
command:
- sh
- -c
- "./start.sh"
env_file:
- ../envs/.env.tiler-db
- ../envs/.env.tiler-imposm
healthcheck:
test: ["CMD", "./liveness.sh"]
interval: 30s
timeout: 10s
retries: 3
restart: always
# tiler-imposm:
# image: osmseed-tiler-imposm:v1
# build:
# context: ../images/tiler-imposm
# dockerfile: Dockerfile
# volumes:
# - ../data/tiler-imposm-data:/mnt/data
# # - ../images/tiler-imposm:/osm
# command:
# - sh
# - -c
# - "./start.sh"
# env_file:
# - ../envs/.env.tiler-db
# - ../envs/.env.tiler-imposm
# healthcheck:
# test: ["CMD", "./liveness.sh"]
# interval: 30s
# timeout: 10s
# retries: 3
# restart: always
# # ######################################################
# # ### Tiler server
# # ######################################################
tiler-server:
image: osmseed-tiler-server:v1
# platform: linux/amd64
build:
context: ../images/tiler-server
dockerfile: Dockerfile
volumes:
- ../images/tiler-server:/app
- ../data/tiler-imposm-data:/mnt/data/imposm
depends_on:
- tiler-db
- tiler-imposm
- ../images/tiler-server:/app
- ../data/tiler-imposm-data:/mnt/data/imposm
ports:
- "9090:9090"
command:
- sh
- -c
- "./start.sh"
- "9090:9090"
command: "./start.sh"
env_file:
- ../envs/.env.tiler-db
- ../envs/.env.tiler-server
restart: always

- ../envs/.env.tiler-db
- ../envs/.env.tiler-server
restart: always
3 changes: 0 additions & 3 deletions images/tiler-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ RUN cd /opt/ && python build_config.py \
--providers config/providers \
--output /opt/tegola_config/config.toml

# Volumen
VOLUME /mnt/data
# Copy config and exec files
COPY ./config/config.toml /opt/tegola_config/config.toml
COPY ./tile2bounds.py .
COPY ./start.sh .
COPY ./expire-watcher.sh .
Expand Down

0 comments on commit cf9c368

Please sign in to comment.