forked from RamiAwar/dataline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (32 loc) · 772 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (32 loc) · 772 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
version: "3.8"
networks:
dataline:
driver: bridge
volumes:
dataline_dev:
services:
backend:
build:
context: .
target: base
ports:
- "7377:7377"
working_dir: /home/dataline/backend
command: ["bash", "-c", "python -m alembic upgrade head && python -m uvicorn dataline.main:app --port=7377 --host=0.0.0.0 --reload"]
volumes:
- dataline_dev:/home/.dataline # persist local sqlite db
- ./backend/dataline:/home/dataline/backend/dataline
- ./backend/alembic:/home/dataline/backend/alembic
networks:
- dataline
frontend:
build:
context: ./frontend
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend/src:/app/src
networks:
- dataline