OpenDroneMap-WebODM/docker-compose.yml

59 wiersze
1.5 KiB
YAML
Czysty Zwykły widok Historia

# This configuration does not include a processing node
# Which makes for faster setup times
2018-04-05 14:51:14 +00:00
version: '2.1'
volumes:
dbdata:
appmedia:
2016-09-11 23:52:31 +00:00
services:
db:
image: opendronemap/webodm_db
2016-09-11 23:52:31 +00:00
container_name: db
expose:
- "5432"
volumes:
- ${WO_DB_DIR}:/var/lib/postgresql/data:Z
restart: unless-stopped
oom_score_adj: -100
2016-09-11 23:52:31 +00:00
webapp:
image: opendronemap/webodm_webapp
2016-09-11 23:52:31 +00:00
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\""
2016-09-11 23:52:31 +00:00
volumes:
- ${WO_MEDIA_DIR}:/webodm/app/media:z
2016-09-11 23:52:31 +00:00
ports:
2017-11-17 19:43:06 +00:00
- "${WO_PORT}:8000"
2016-09-11 23:52:31 +00:00
depends_on:
- db
- broker
2018-02-16 15:43:53 +00:00
- worker
environment:
- WO_PORT
- WO_HOST
- WO_DEBUG
2018-02-17 17:45:09 +00:00
- WO_BROKER
2019-07-01 16:02:31 +00:00
- WO_DEV
2021-08-04 20:20:51 +00:00
- WO_DEV_WATCH_PLUGINS
2023-09-16 17:46:15 +00:00
- WO_SECRET_KEY
restart: unless-stopped
oom_score_adj: 0
broker:
2023-09-04 15:06:27 +00:00
image: redis:7.0.10
container_name: broker
restart: unless-stopped
oom_score_adj: -500
worker:
2018-02-17 17:45:09 +00:00
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:
- ${WO_MEDIA_DIR}:/webodm/app/media:z
depends_on:
2018-02-17 17:45:09 +00:00
- db
- broker
environment:
- WO_BROKER
2018-02-17 17:45:09 +00:00
- WO_DEBUG
2023-09-16 17:46:15 +00:00
- WO_SECRET_KEY
restart: unless-stopped
oom_score_adj: 250