forked from DBGroup-SUSTech/Athena
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 959 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
41
services:
athena:
build:
context: .
dockerfile: Dockerfile
container_name: athena
depends_on:
postgres:
condition: service_healthy
command: ./scripts/run_experiments.py --models ours --workloads JOB --methods ours
volumes:
- ./data:/data
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- CUBLAS_WORKSPACE_CONFIG=:4096:8
runtime: nvidia
networks:
- athena
postgres:
build:
context: ./postgres_service
dockerfile: Dockerfile
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./postgres_service/data:/var/lib/postgresql/data
networks:
- athena
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -h localhost"]
interval: 1s
timeout: 30s
retries: 30
networks:
athena:
driver: bridge