-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 1.38 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
version: "3.8"
services:
inference:
# network_mode: host
container_name: "semantic-segment-inference2"
build: "./inference"
command: "uvicorn main:app --host 0.0.0.0 --port 5553"
ports:
- "5553:5553"
volumes:
- ./inference:/code
- ./volumes/weights:/weights
environment:
- PORT=5556
- WEIGHTS_DIR=/weights
ipc: host
shm_size: 1024M
deploy:
resources:
reservations:
devices:
- capabilities: [ gpu ]
networks:
- segment-network
#
train:
# network_mode: host
container_name: "semantic-segment-train2"
build: "./train"
command: "uvicorn main:app --host 0.0.0.0 --port 5554"
ports:
- "5554:5554"
volumes:
- ./train:/code
- ./volumes/weights:/weights
- ./volumes/dataset:/dataset
environment:
- RESPONSE_URL=http://web:8000/api/v1/train/done
- LOGGER_URL=http://127.0.0.1:8000/logger
- PORT=5554
- IS_LOGGER_ON=False
- WEIGHTS_DIR=/weights
ipc: host
shm_size: 1024M
deploy:
resources:
reservations:
devices:
- capabilities: [ gpu]
networks:
- segment-network
redis:
restart: always
image: redis:latest
expose:
- "6379"
volumes:
- ./volumes/redis-data:/data
networks:
- segment-network
networks:
segment-network: