-
Notifications
You must be signed in to change notification settings - Fork 7
/
compose.dev.yaml
79 lines (78 loc) · 1.64 KB
/
compose.dev.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
backend:
build:
context: back
container_name: whombat-backend
command: ["uv", "run", "whombat"]
environment:
- WHOMBAT_DEV=true
- WHOMBAT_DATA_DIR=/data/
- WHOMBAT_DB_URL=sqlite+aiosqlite:////data/whombat_new.db
# - WHOMBAT_DB_URL=sqlite+aiosqlite:////data/whombat.db
networks:
- public
volumes:
- type: volume
source: db-data
target: /data
- type: bind
source: example_data/
target: /audio
ports:
- 5000:5000
develop:
watch:
- action: sync
path: back/src
target: /code/src
frontend:
build:
context: front
args:
- NODE_ENV=development
container_name: whombat-frontend
command: ["npm", "run", "dev"]
depends_on:
- backend
networks:
- public
ports:
- 3000:3000
develop:
watch:
- action: sync
path: front
target: /code
storybook:
build:
context: front
args:
- NODE_ENV=development
container_name: whombat-storybook
command: ["npm", "run", "storybook"]
ports:
- 6006:6006
develop:
watch:
- action: sync
path: front
target: /code
docs:
build:
context: back
container_name: whombat-docs
ports:
- 8000:8000
command: ["uv", "run", "mkdocs", "serve", "-a", "0.0.0.0:8000"]
develop:
watch:
- action: sync
path: back/docs
target: /code/docs
- action: sync
path: back/mkdocs.yml
target: /code/mkdocs.yml
networks:
public:
volumes:
db-data: