-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 1009 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.9"
services:
qgis-server:
build:
context: proxy
ports:
- "8000:8000"
volumes:
- ./proxy:/app
restart:
unless-stopped
environment:
# Timeout in seconds. After this time, jobs will fail, regardless if they have been tried enough times
# E.g. when no worker is around at all
TIMEOUT: 60
worker:
build:
context: worker
volumes:
- ./worker:/app
- ./projects:/io/data
- ./scripts:/io/scripts
restart:
unless-stopped
deploy:
replicas: 2
environment:
# Timeout in seconds after which the worker should give up and restart the job
# TODO ... In this case we assume that QGIS is dead. So we could also just immediately die and exit and restart
# the container
TIMEOUT: 10
# Maximum retry count for failed jobs
RETRIES: 10
# Comma separated list of projects
PRELOAD_PROJECTS: 'simple_bee_farming'
redis:
image: redis:7.0.11-alpine