Skip to content

Commit

Permalink
build: update node and web ODM versions, document compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 30, 2024
1 parent d02e504 commit cee0726
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions docker-compose.odm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ volumes:
odm-db-data:

services:
odm-db:
image: docker.io/opendronemap/webodm_db:latest
container_name: odm-db
volumes:
- odm-db-data:/var/lib/postgresql/data:Z
ports:
- 5999:5432
networks:
- dtm-network
restart: unless-stopped
oom_score_adj: -100

# This container does the actual imagery processing (not persistent, scalable)
odm-api:
image: docker.io/opendronemap/nodeodm:3.5.3
# This is hardcoded by default
Expand All @@ -29,8 +18,9 @@ services:
restart: unless-stopped
oom_score_adj: 500

# UI to coordinate queueing of tasks and display of output
odm-web:
image: docker.io/opendronemap/webodm_webapp:2.5.4
image: docker.io/opendronemap/webodm_webapp:2.5.5
container_name: odm-web
entrypoint: /bin/bash -c "chmod +x /webodm/*.sh && /bin/bash -c \"/webodm/wait-for-postgres.sh odm-db /webodm/wait-for-it.sh -t 0 odm-broker:6379 -- /webodm/start.sh\""
volumes:
Expand All @@ -47,16 +37,9 @@ services:
restart: unless-stopped
oom_score_adj: 0

odm-broker:
image: docker.io/redis:7.0.10
container_name: odm-broker
networks:
- dtm-network
restart: unless-stopped
oom_score_adj: -500

# Instance of WebODM that uses Celery to manage processing jobs
odm-worker:
image: docker.io/opendronemap/webodm_webapp:2.5.4
image: docker.io/opendronemap/webodm_webapp:2.5.5
container_name: odm-worker
entrypoint: /bin/bash -c "/webodm/wait-for-postgres.sh odm-db /webodm/wait-for-it.sh -t 0 odm-broker:6379 -- /webodm/wait-for-it.sh -t 0 odm-web:8000 -- /webodm/worker.sh start"
volumes:
Expand All @@ -72,3 +55,25 @@ services:
- dtm-network
restart: unless-stopped
oom_score_adj: 250

# Redis broker to manage job queue
odm-broker:
image: docker.io/redis:7.4.1
container_name: odm-broker
networks:
- dtm-network
restart: unless-stopped
oom_score_adj: -500

# Stores data related to the web instance & queueing
odm-db:
image: docker.io/opendronemap/webodm_db:latest
container_name: odm-db
volumes:
- odm-db-data:/var/lib/postgresql/data:Z
ports:
- 5999:5432
networks:
- dtm-network
restart: unless-stopped
oom_score_adj: -100

0 comments on commit cee0726

Please sign in to comment.