-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 910 Bytes
/
docker-compose.yml
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
version: "3"
volumes:
# Use shared volume that does not get mounted on host to speed up on mac O(100x) improvement
gen:
eyg_gen:
services:
editor:
build:
context: .
dockerfile: language.Dockerfile
working_dir: /opt/app
volumes:
- .:/opt/app
- gen:/opt/app/editor/src/gen
- eyg_gen:/opt/app/eyg/gen
- ../plinth:/opt/plinth
- ../codec:/opt/codec
- ../PRM:/opt/PRM
- ../javascript:/opt/javascript
# network_mode unavailable on mac
# network_mode: host
# can't have port here because need to start two services
# command: "watchexec --exts gleam -- sh build_eyg"
editor_frontend:
image: node:16.13.0
working_dir: /opt/app/editor
volumes:
- .:/opt/app
- gen:/opt/app/editor/src/gen
# Need to use -p 5000:5000 for access via localhost
ports:
- "5000:5000"
command: "npm run dev"