-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.12 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
# Contributor-only convenience. End users should run `npx openhop demo`
# (or `openhop serve`) instead — the npm package ships a self-contained
# server + web UI and does not need a repo checkout.
#
# This compose file mounts the source tree, runs `npm install` inside a
# Node container, and starts the workspace dev script. Use it when you
# want to hack on OpenHop in an isolated container without installing
# Node locally.
services:
openhop:
image: node:22-alpine
container_name: openhop
working_dir: /app
command: sh -c "npm install && npm run dev"
ports:
- "8787:8787"
- "8788:8788"
volumes:
- .:/app
- openhop-node-modules:/app/node_modules
- openhop-web-modules:/app/packages/web/node_modules
- openhop-flows:/root/.openhop
environment:
- CHOKIDAR_USEPOLLING=true
# Inside the container we need to bind every interface so the host
# port-mapping above can reach the server. Outside docker the server
# defaults to 127.0.0.1.
- HOST=0.0.0.0
restart: unless-stopped
volumes:
openhop-node-modules:
openhop-web-modules:
openhop-flows: