-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.58 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
57
58
59
60
61
62
63
version: "3"
services:
frontend:
image: ghcr.io/catalystneuro/si-sorting-frontend:latest
container_name: si-sorting-frontend
command: ["npm", "run", "start"]
ports:
- "5173:5173"
environment:
DEPLOY_MODE: compose
depends_on:
- rest
rest:
image: ghcr.io/catalystneuro/si-sorting-rest:latest
container_name: si-sorting-rest
ports:
- "8000:8000"
environment:
REST_DEPLOY_MODE: compose
WORKER_DEPLOY_MODE: compose
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_BATCH_JOB_QUEUE: ${AWS_BATCH_JOB_QUEUE}
AWS_BATCH_JOB_DEFINITION: ${AWS_BATCH_JOB_DEFINITION}
DANDI_API_KEY: ${DANDI_API_KEY}
depends_on:
- database
worker:
image: ghcr.io/catalystneuro/si-sorting-worker:latest
container_name: si-sorting-worker
ports:
- "5000:5000"
environment:
WORKER_DEPLOY_MODE: compose
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
DANDI_API_KEY: ${DANDI_API_KEY}
volumes:
- ./results:/results
- ./logs:/logs
runtime: nvidia
devices:
- "/dev/nvidia0:/dev/nvidia0"
database:
image: postgres:latest
container_name: si-sorting-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: si-sorting-db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
pgdata: