-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
66 lines (63 loc) · 1.68 KB
/
docker-compose.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
services:
outcomespillar.backend:
tty: true
image: outcomes-pillar-backend:latest
build:
context: ./backend/
dockerfile: Dockerfile.dev
container_name: outcomespillar-backend
command: npx nest start --watch
ports:
- "3000:3000"
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- './backend:/usr/src/app:delegated'
networks:
- govtool
outcomespillar.ui:
tty: true
image: outcomes-pillar-ui:latest
build:
context: ./ui/
dockerfile: Dockerfile.dev
container_name: outcomespillar-ui
entrypoint: ["sh", "-c", " npm run watch"]
environment:
- NODE_ENV=development
- ROLLUP_WATCH=true
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- './ui:/usr/src/app:delegated'
networks:
- govtool
govtool.frontend:
tty: true
image: node:20-alpine
container_name: govtool-frontend
working_dir: /app/govtool/frontend
entrypoint: ["sh", "-c", "cd /app/ui && npm link && \
cd /app/govtool/frontend && npm link @intersect.mbo/govtool-outcomes-pillar-ui && \
npx vite --host --port 5173"]
ports:
- "5173:5173"
environment:
- VITE_IS_PROPOSAL_DISCUSSION_FORUM_ENABLED=true
- VITE_IS_GOVERNANCE_OUTCOMES_PILLAR_ENABLED=true
- VITE_APP_ENV=development
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- './govtool/frontend:/app/govtool/frontend'
- './ui/:/app/ui'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173"]
interval: 30s
timeout: 10s
retries: 3
networks:
- govtool
networks:
govtool:
driver: bridge