-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yaml
51 lines (50 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
41
42
43
44
45
46
47
48
49
50
51
version: "3"
services:
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
hostname: backend
working_dir: /opt/logdetective-website/backend/src
command: "uvicorn api:app --host 0.0.0.0 --port 5020"
stdin_open: true
tty: true
ports:
- 5020:5020
volumes:
- .:/opt/logdetective-website:z
- persistent:/persistent
env_file:
- "files/env"
environment:
- ENV=devel
- FEEDBACK_DIR=/persistent/results
- PYTHONPATH=/opt/logdetective-website/backend
# The frontend container is only a quality of life for development.
# For production, we will simply compile the ClojureScript into JavaScript
# and deploy it.
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
hostname: frontend
working_dir: /opt/logdetective-website/frontend
command: >
bash -c "
npm install &&
npx shadow-cljs watch app
"
stdin_open: true
tty: true
ports:
- 3000:3000
- 9630:9630
- 3333:3333
volumes:
- .:/opt/logdetective-website:z
env_file:
- "files/env"
environment:
- ENV=devel
volumes:
persistent: