-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (66 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (66 loc) · 1.32 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
services:
backend:
build:
context: .
dockerfile: perovskite-sim/Dockerfile.backend
image: solarlab-backend:dev
environment:
PEROVSKITE_BLAS_PIN: "1"
PYTHONUNBUFFERED: "1"
volumes:
- ./perovskite-sim:/app
ports:
- "8002:8000"
command:
- uvicorn
- backend.main:app
- --host
- 0.0.0.0
- --port
- "8000"
- --reload
frontend:
build:
context: .
dockerfile: perovskite-sim/frontend/Dockerfile
image: solarlab-frontend:dev
environment:
VITE_API_BASE: http://127.0.0.1:8002
volumes:
- ./perovskite-sim/frontend:/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: perovskite-sim/Dockerfile.backend
image: solarlab-backend:dev
environment:
PEROVSKITE_BLAS_PIN: "1"
PYTHONUNBUFFERED: "1"
volumes:
- ./perovskite-sim:/app
ports:
- "8888:8888"
command:
- jupyter
- lab
- --ip=0.0.0.0
- --port=8888
- --no-browser
- --allow-root
- --ServerApp.token=solarlab
volumes:
frontend_node_modules: