-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
60 lines (51 loc) · 1.48 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
52
53
54
55
56
57
58
version: '3.8'
services:
backend1:
build: ./backend
ports:
- 5678:5678
volumes:
- ./backend/src/app:/usr/src/app
- ./backend/src/tests:/usr/src/tests
- ./backend/src/migrations/versions:/usr/src/migrations/versions
environment:
ROOT_PATH: "/api"
RUN_ALEMBIC: 1
restart: always
backend2:
build: ./backend
volumes:
- ./backend/src/app:/usr/src/app
- ./backend/src/tests:/usr/src/tests
- ./backend/src/migrations/versions:/usr/src/migrations/versions
environment:
ROOT_PATH: "/api"
restart: always
proxy:
image: traefik:latest
volumes:
- ./proxy:/etc/traefik
ports:
- 5000:5000
- 8080:8080
cockroach:
image: cockroachdb/cockroach-unstable:v21.2.0-beta.4
command: start-single-node --insecure --listen-addr=0.0.0.0:26257
jupyter:
build: ./jupyter
ports:
- 8888:8888
volumes:
- ./jupyter/notebooks:/home/jovyan/notebooks
- ./backend/src/app:/home/jovyan/backend/app:ro
environment:
PYTHONPATH: /home/jovyan/backend
frontend:
build: ./frontend
volumes:
# I'd love to just mount ./frontend/minor-illusion:/app
# but it is volume hell with node_modules and .next directories
- ./frontend/minor-illusion/src:/app/src
- ./frontend/minor-illusion/public:/app/public
- ./frontend/minor-illusion/package.json:/app/package.json
- ./frontend/minor-illusion/yarn.lock:/app/yarn.lock