-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
68 lines (66 loc) · 1.61 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
64
65
66
67
68
# Image name format from: https://docs.docker.com/reference/compose-file/services/#image
# [<registry>/][<project>/]<image>[:<tag>|@<digest>]
services:
alphafind-training:
build:
context: ./training
dockerfile: Dockerfile
image: alphafind/training:compose
pull_policy: build
container_name: af-t
restart: no
environment:
WANDB_MODE: offline
volumes:
- "./training/data:/training/data"
- "./training/models:/training/models"
networks:
- alphafind
alphafind-api:
build:
context: ./
dockerfile: ./api/env/Dockerfile_local
image: alphafind/api:compose
pull_policy: build
container_name: af-api
restart: unless-stopped
ports:
- 8080:8000
volumes:
- "./training/models:/home/user/data/models"
- "./training/data:/home/user/data"
- "./api/eph:/eph"
- "./api/src:/home/user/src"
healthcheck:
test: curl -f http://localhost:8000/ready || exit 1
interval: 1m30s
timeout: 25s
retries: 5
start_period: 30s
depends_on:
alphafind-training:
condition: service_completed_successfully
restart: true
required: true
networks:
- alphafind
alphafind-ui:
build:
context: ./ui
dockerfile: Dockerfile
image: alphafind/ui:compose
pull_policy: build
container_name: af-ui
restart: unless-stopped
ports:
- 8081:8081
depends_on:
alphafind-api:
condition: service_healthy
restart: true
required: true
networks:
- alphafind
networks:
alphafind:
attachable: true