-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
121 lines (114 loc) · 2.73 KB
/
compose.dev.yaml
File metadata and controls
121 lines (114 loc) · 2.73 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# compose.dev.yaml (DEVELOPMENT - explicit dev overlay)
# Run with: docker compose -f compose.yaml -f compose.dev.yaml up
name: relab_dev
services:
api:
build:
dockerfile: Dockerfile
target: dev
restart: "no"
ports:
- "8011:8000"
environment:
ENVIRONMENT: dev
BACKEND_API_URL: "http://localhost:8011"
FRONTEND_APP_URL: "http://localhost:8013"
FRONTEND_WEB_URL: "http://localhost:8010"
env_file: ./backend/.env.dev
develop:
watch:
- action: sync
path: ./backend
target: /opt/relab/backend
ignore:
- .venv/
- __pycache__/
- "*.pyc"
- logs/
- data/
- action: rebuild
path: ./backend/uv.lock
- action: rebuild
path: ./backend/pyproject.toml
redis:
ports:
- "6379:6379"
env_file: ./backend/.env.dev
postgres:
ports:
- "5432:5432"
env_file: ./backend/.env.dev
migrator:
env_file: ./backend/.env.dev
docs-site:
build:
context: ./docs
dockerfile: Dockerfile
target: dev
restart: "no"
ports:
- "8012:8000"
develop:
watch:
- action: sync
path: ./docs
target: /opt/relab/docs
ignore:
- node_modules/
- .astro/
- dist/
- site/
- action: rebuild
path: ./docs/pnpm-lock.yaml
- action: rebuild
path: ./docs/package.json
app-site:
build:
dockerfile: Dockerfile
target: dev
restart: "no"
ports:
- "8013:8081"
environment:
EXPO_PUBLIC_API_URL: "http://localhost:8011"
EXPO_PUBLIC_WEBSITE_URL: "http://localhost:8010"
develop:
watch:
- action: sync
path: ./frontend-app
target: /opt/relab/frontend-app
ignore:
- node_modules/
- .expo/
- dist/
- web-build/
- coverage/
- test-results/
- playwright-report/
- e2e/
- jest.config.ts
- jest.setup.ts
- action: rebuild
path: ./frontend-app/pnpm-lock.yaml
web-site:
build:
dockerfile: Dockerfile
target: dev
restart: "no"
ports:
- "8010:8081"
environment:
PUBLIC_API_URL: "http://localhost:8011"
PUBLIC_DOCS_URL: "http://localhost:8012"
PUBLIC_APP_URL: "http://localhost:8013"
develop:
watch:
- action: sync
path: ./frontend-web
target: /opt/relab/frontend-web
ignore:
- node_modules/
- .astro/
- dist/
- action: rebuild
path: ./frontend-web/pnpm-lock.yaml