-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (40 loc) · 1.19 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
version: '3'
services:
sonar:
build: ./sonar
depends_on:
- api
- ui
- proxy
api:
build:
context: ./src
dockerfile: ./api/Dockerfile
volumes:
- ./labeled_data:/labeled_data
- ./pdfs:/pdfs
environment:
# This ensures that errors are printed as they occur, which
# makes debugging easier.
- PYTHONUNBUFFERED=1
- LOG_LEVEL=DEBUG
command: ["main:app", "--host", "0.0.0.0", "--reload"]
ui:
build:
context: ./src/ui
dockerfile: Dockerfile-local
# We can't mount the entire UI directory, since JavaScript dependencies
# (`node_modules`) live at that location.
volumes:
- ./src/ui/src:/usr/local/src/src
- ./src/ui/public:/usr/local/src/public
- ./src/ui/package.json:/usr/local/src/package.json
- ./src/ui/tsconfig.json:/usr/local/src/tsconfig.json
- ./src/ui/yarn.lock:/usr/local/src/yarn.lock
proxy:
build: ./proxy
ports:
- 8080:80
depends_on:
- api
- ui