Skip to content

Commit

Permalink
wip: adds open drone map and map packer
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Oct 24, 2024
1 parent 9f48d23 commit 573fa68
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ CORS=all
# MAPEO CONFIG EDITOR
DOMAIN_MAPEO_EDITOR=editor.mapeo.app
# STATUSNOOK MONITORING
DOMAIN_STATUSNOOK=status.kitdt.com
DOMAIN_STATUSNOOK=status.kitdt.com
# OPEN DRONE MAPEO
77 changes: 77 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,26 @@ services:
- ${DIR}/app-data/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
# https://github.com/ConservationMetrics/mbgl-tile-renderer
tile-renderer-api:
image: communityfirst/mbgl-tile-renderer:main
environment:
VIRTUAL_HOST: ${DOMAIN_TILE_RENDERER_API}
LETSENCRYPT_HOST: ${DOMAIN_TILE_RENDERER_API}
LETSENCRYPT_EMAIL: ${EMAIL}
volumes:
- ${DIR}/content/partners:/app/outputs
restart: unless-stopped
command: server
# ui
# tile-renderer-ui:
# image: communityfirst/tile-renderer-ui
# environment:
# VIRTUAL_HOST: ${DOMAIN_TILE_RENDERER}
# LETSENCRYPT_HOST: ${DOMAIN_TILE_RENDERER}
# LETSENCRYPT_EMAIL: ${EMAIL}
# API_DOMAIN: ${DOMAIN_TILE_RENDERER_API}
# restart: unless-stopped
# https://github.com/digidem/mapeo-config-editor-v2
mapeo-config-editor:
image: communityfirst/mapeo-config-editor
Expand All @@ -173,3 +193,60 @@ services:
volumes:
- ${DIR}/app-data/statusnook:/app/statusnook-data
restart: always

# OpenDroneMap
db:
image: opendronemap/webodm_db
container_name: db
ports:
- "5432:5432"
volumes:
- ${DIR}/app-data/webodm_db:/var/lib/postgresql/data:Z
restart: unless-stopped
oom_score_adj: -100
webapp:
image: opendronemap/webodm_webapp
container_name: webapp
entrypoint: /bin/bash -c "chmod +x /webodm/*.sh && /bin/bash -c \"/webodm/wait-for-postgres.sh db /webodm/wait-for-it.sh -t 0 broker:6379 -- /webodm/start.sh\""
volumes:
- ${DIR}/app-data/webodm_webapp:/webodm/app/media:z
ports:
- "7000:8000"
depends_on:
- db
- broker
- worker
# environment:
# VIRTUAL_HOST: ${DOMAIN_ODM}
# LETSENCRYPT_HOST: ${DOMAIN_ODM}
# LETSENCRYPT_EMAIL: ${EMAIL}
# VIRTUAL_PORT: 8000
# WO_PORT: ${WO_PORT}
# WO_HOST: ${WO_HOST}
# WO_DEBUG: ${WO_DEBUG}
# WO_BROKER: ${WO_BROKER}
# WO_DEV: ${WO_DEV}
# WO_DEV_WATCH_PLUGINS: ${WO_DEV_WATCH_PLUGINS}
# WO_SECRET_KEY: ${WO_SECRET_KEY}
restart: unless-stopped
oom_score_adj: 0
broker:
image: redis:7.0.10
container_name: broker
restart: unless-stopped
oom_score_adj: -500
worker:
image: opendronemap/webodm_webapp
container_name: worker
entrypoint: /bin/bash -c "/webodm/wait-for-postgres.sh db /webodm/wait-for-it.sh -t 0 broker:6379 -- /webodm/wait-for-it.sh -t 0 webapp:8000 -- /webodm/worker.sh start"
volumes:
- ${DIR}/app-data/webodm_worker:/webodm/app/media:z
depends_on:
- db
- broker
environment:
- WO_BROKER
- WO_DEBUG
- WO_SECRET_KEY
restart: unless-stopped
oom_score_adj: 250

0 comments on commit 573fa68

Please sign in to comment.