-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.81 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
volumes:
model:
ruaumoko:
services:
# COMMENT OUT THIS SERVICE TO PREVENT REDOWNLOADING
downloader:
image: ghcr.io/projecthorus/tawhiri-downloader-container:latest
volumes:
- model:/srv/tawhiri-datasets
environment:
- PYTHONUNBUFFERED=1 # used to allow python logs to output better
- TZ=UTC
# COMMENT OUT THIS SERVICE TO PREVENT REDOWNLOADING
ruaumoko:
image: ghcr.io/projecthorus/tawhiri:master
volumes:
- ruaumoko:/srv
- model:/srv/tawhiri-datasets
entrypoint: /root/.local/bin/ruaumoko-download
command: [ "-v" ]
platform: "linux/amd64"
updater:
#IF ruaumoko and downloader COMMENTED OUT THEN COMMENT OUT THIS depends_on SECTION
depends_on: # ensure the downloader has run first
downloader:
condition: service_completed_successfully
image: ghcr.io/projecthorus/tawhiri-downloader-container:latest
volumes:
- model:/srv/tawhiri-datasets
environment:
- PYTHONUNBUFFERED=1 # used to allow python logs to output better
- TZ=UTC
entrypoint: /root/tawhiri-downloader/default/main.exe
command: ["daemon", "-base-url", "aws-mirror"]
tawhiri:
#IF ruaumoko and downloader COMMENTED OUT THEN COMMENT OUT THIS depends_on SECTION
depends_on: # ensure the downloader has run first
downloader:
condition: service_completed_successfully
ruaumoko:
condition: service_completed_successfully
image: ghcr.io/projecthorus/tawhiri:master
volumes:
- ruaumoko:/srv
- model:/srv/tawhiri-datasets
# tweak workers / threads for performance based on cpu cores
command: [ "/root/.local/bin/gunicorn", "-b", "0.0.0.0:8000", "--workers=1", "--timeout=3", "--keep-alive=65", "--threads=20", "tawhiri.api:app" ]
ports:
- 8000:8000
platform: "linux/amd64"