-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 886 Bytes
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
services:
backend:
container_name: backend
build:
context: .
dockerfile: docker/backend/Dockerfile
ports:
- "8000:8000"
volumes:
- ./semantic/backend:/app/backend
- ./data/model.sav:/app/data/model.sav
- ./semantic/data.json:/app/data.json
- ./semantic/backend/tmp:/app/tmp
command: >
/bin/sh -c "python -m poetry run uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload"
frontend:
container_name: frontend
build:
context: .
dockerfile: docker/frontend/Dockerfile
ports:
- "3000:3000"
volumes:
- ./semantic/frontend/src:/app/src
- ./semantic/frontend/public:/app/public
command: >
/bin/sh -c "npm start"
webserver:
container_name: nginx
build:
context: .
dockerfile: docker/webserver/Dockerfile
ports:
- "80:80"