-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose.yml
40 lines (36 loc) · 1000 Bytes
/
docker-compose.yml
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.8"
networks:
dataline:
driver: bridge
volumes:
dataline_dev:
services:
backend:
build:
context: .
target: base
ports:
- "7377:7377"
environment:
ALLOWED_ORIGINS: "${ALLOWED_ORIGINS:-http://localhost:7377,http://0.0.0.0:7377,http://localhost:5173,http://127.0.0.1:5173}"
AUTH_USERNAME: "${AUTH_USERNAME}"
AUTH_PASSWORD: "${AUTH_PASSWORD}"
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