-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (55 loc) · 1.3 KB
/
docker-compose.dev.yml
File metadata and controls
63 lines (55 loc) · 1.3 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
services:
backend:
build:
target: dev
args:
MODE: dev
command: ["go", "run", ".", "serve"]
environment:
SERVICE_ENV: development
volumes:
- ./backend:/app/backend
worker:
build:
target: dev
args:
MODE: dev
command: ["go", "run", ".", "sync-worker"]
environment:
SERVICE_ENV: development
volumes:
- ./backend:/app/backend
- ./plugins:/app/plugins
frontend:
build:
target: dev
args:
MODE: dev
command: ["sh", "-c", "if [ -f package.json ]; then corepack enable && pnpm install && pnpm dev --host 0.0.0.0 --port 3000; else echo 'frontend/package.json not found; skipping frontend startup' && sleep infinity; fi"]
environment:
NODE_ENV: development
VITE_API_BASE_URL: /api
VITE_DEV_PROXY_TARGET: http://backend:8080
VITE_APP_TITLE: DevHub
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
nginx:
ports:
- "80:80"
- "443:443"
db:
ports:
- "${POSTGRES_HOST_PORT:-5433}:5432"
redis:
ports:
- "6379:6379"
gitea:
ports:
- "${GITEA_HTTP_PORT:-3000}:3000"
- "${GITEA_SSH_HOST_PORT:-2222}:22"
devhub-registry:
ports:
- "5001:5000"
volumes:
frontend_node_modules: