Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (82 loc) · 1.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (82 loc) · 1.74 KB
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
services:
backend:
build:
context: .
dockerfile: Dockerfile
image: solarlab-server:dev
environment:
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
MKL_NUM_THREADS: "1"
VECLIB_MAXIMUM_THREADS: "1"
NUMEXPR_NUM_THREADS: "1"
BLIS_NUM_THREADS: "1"
NEWCORE_EQUATIONS: "assembled"
PYTHONUNBUFFERED: "1"
volumes:
- solarlab_runtime:/var/lib/solarlab
ports:
- "8000:8000"
command:
- /app/.venv/bin/python
- -m
- solarlab_server.cli
- --host
- 0.0.0.0
- --port
- "8000"
- --store-dir
- /var/lib/solarlab/store
- --work-dir
- /var/lib/solarlab/work
frontend:
build:
context: .
dockerfile: web/Dockerfile
image: solarlab-frontend:dev
environment:
VITE_SOLARLAB_SERVER: http://backend:8000
volumes:
- ./web:/app
- frontend_node_modules:/app/node_modules
ports:
- "5173:5173"
depends_on:
- backend
command:
- npm
- run
- dev
- --
- --host
- 0.0.0.0
notebook:
profiles:
- notebook
build:
context: .
dockerfile: Dockerfile
image: solarlab-server:dev
environment:
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
MKL_NUM_THREADS: "1"
VECLIB_MAXIMUM_THREADS: "1"
NUMEXPR_NUM_THREADS: "1"
BLIS_NUM_THREADS: "1"
NEWCORE_EQUATIONS: "assembled"
PYTHONUNBUFFERED: "1"
ports:
- "8888:8888"
command:
- /app/.venv/bin/python
- -m
- jupyterlab
- --ip=0.0.0.0
- --port=8888
- --no-browser
- --allow-root
- --ServerApp.token=solarlab
volumes:
solarlab_runtime:
frontend_node_modules: