-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.03 KB
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
services:
parallel-review:
build:
context: .
dockerfile: Dockerfile.reviewer
container_name: parallel-review
restart: unless-stopped
ports:
- "8090:8090"
cpus: 2
mem_limit: 5g
env_file: .env
volumes:
- review-data:/app/review_browse/data
# Cap container log growth: Skepthical reviews emit hundreds of KB of
# stdout per paper, plus we now access-log every webhook. Without these
# limits the host disk fills indefinitely.
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
# Healthcheck so Docker can restart a wedged worker (gunicorn alive but
# not serving). The Flask app exposes /healthz which does a cheap DB
# liveness probe. See review_browse/factory.py.
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8090/healthz', timeout=5).read()"]
interval: 60s
timeout: 10s
retries: 3
start_period: 30s
volumes:
review-data: