-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose.yaml
150 lines (150 loc) · 4.5 KB
/
docker_compose.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
services:
jax-gpu-service:
profiles: ["jax-gpu"]
build:
dockerfile: ./Dockerfile.jax-gpu
context: .
container_name: thinking-gpu
restart: no
volumes:
- ./artifacts/log/:/app/log
- ./artifacts/cache:/app/cache
- ./artifacts/experiments:/app/experiments
- ./humn:/app/humn
- ./core:/app/core
- ./implementations:/app/implementations
- ./tasks:/app/tasks
environment:
- ERROR_LOG=/app/log/error.log
- LOG_LEVEL=info
- PYTHONUNBUFFERED=TRUE
- TF_CPP_MIN_LOG_LEVEL=0
- MUJOCO_GL=osmesa
env_file:
- ./secrets.env
ports:
- "127.0.0.1:43690:43690"
networks:
- app_network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
jax-cpu-service:
profiles: ["jax-cpu"]
build:
dockerfile: ./Dockerfile.jax-cpu
context: .
container_name: thinking-cpu
restart: no
volumes:
- ./artifacts/log:/app/log
- ./artifacts/cache:/app/cache
- ./artifacts/experiments:/app/experiments
- ./humn:/app/humn
- ./core:/app/core
- ./implementations:/app/implementations
- ./tasks:/app/tasks
environment:
- ERROR_LOG=/app/log/error.log
- LOG_LEVEL=info
- PYTHONUNBUFFERED=TRUE
- TF_CPP_MIN_LOG_LEVEL=0
- MUJOCO_GL=osmesa
env_file:
- ./secrets.env
ports:
- "127.0.0.1:43690:43690"
networks:
- app_network
api-call-service:
profiles: ["api-call"]
build:
dockerfile: ./Dockerfile.pure-python
context: .
container_name: thinking-api-call
restart: no
volumes:
- ./artifacts/log:/app/log
- ./artifacts/cache:/app/cache
- ./artifacts/experiments:/app/experiments
- ./humn:/app/humn
- ./core:/app/core
- ./implementations:/app/implementations
- ./tasks:/app/tasks
environment:
- ERROR_LOG=/app/log/error.log
- LOG_LEVEL=info
- PYTHONUNBUFFERED=TRUE
- TF_CPP_MIN_LOG_LEVEL=0
env_file:
- ./secrets.env
ports:
- "127.0.0.1:43690:43690"
networks:
- app_network
torch-gpu-service:
profiles: ["torch-gpu"]
build:
dockerfile: ./Dockerfile.torch-gpu
context: .
container_name: thinking-gpu-torch
restart: no
volumes:
- ./artifacts/log/:/app/log
- ./artifacts/cache:/app/cache
- ./artifacts/experiments:/app/experiments
- ./humn:/app/humn
- ./core:/app/core
- ./implementations:/app/implementations
- ./tasks:/app/tasks
environment:
- ERROR_LOG=/app/log/error.log
- LOG_LEVEL=info
- PYTHONUNBUFFERED=TRUE
- TF_CPP_MIN_LOG_LEVEL=0
env_file:
- ./secrets.env
ports:
- "127.0.0.1:43690:43690"
networks:
- app_network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
torch-cpu-service:
profiles: ["torch-cpu"]
build:
dockerfile: ./Dockerfile.torch-cpu
context: .
container_name: thinking-cpu-torch
restart: no
volumes:
- ./artifacts/log:/app/log
- ./artifacts/cache:/app/cache
- ./artifacts/experiments:/app/experiments
- ./humn:/app/humn
- ./core:/app/core
- ./implementations:/app/implementations
- ./tasks:/app/tasks
environment:
- ERROR_LOG=/app/log/error.log
- LOG_LEVEL=info
- PYTHONUNBUFFERED=TRUE
- TF_CPP_MIN_LOG_LEVEL=0
env_file:
- ./secrets.env
ports:
- "127.0.0.1:43690:43690"
networks:
- app_network
networks:
app_network:
driver: bridge