-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (38 loc) · 955 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (38 loc) · 955 Bytes
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
services:
echo-redis:
image: redis:latest
ports:
- "6379:6379"
echo-populate:
build:
context: .
dockerfile: Dockerfile
depends_on:
echo-redis:
condition: service_started
env_file:
- .env
environment:
- ECHO_POPULATE_LOOP=True
- ECHO_POPULATE_SLEEP_SECONDS=60
- ECHO_POPULATE_CACHE_THRESHOLD=60
volumes:
- ./scratch:/scratch
command: ["python3", "-u", "echo_populate.py"]
echo-scavenger:
build:
context: .
dockerfile: Dockerfile
depends_on:
echo-redis:
condition: service_started
env_file:
- .env
environment:
- ECHO_SCAVENGER_CACHE_THRESHOLD=50
- ECHO_SCAVENGER_CHUNK_SIZE=2
- ECHO_SCAVENGER_SLEEP_SECONDS=10
- ECHO_SCAVENGER_MIN_AGE_SECONDS=180
volumes:
- ./scratch:/scratch
command: ["python3", "-u", "echo_scavenger.py"]