-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-dev.yml
56 lines (55 loc) · 1.59 KB
/
docker-compose-dev.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3'
services:
vorker-master:
image: vorker-dev
# build:
# context: .
# dockerfile: .dev.Dockerfile
# image: vaalacat/vorker
privileged: true
volumes:
- /tmp/workerd-master:/workerd # change to your own path
- .:/workspaces/vorker
# - /tmp/workerd-master-home:/home/dev
- /tmp/workerd-master-home:/root
stdin_open: true
tty: true
environment:
- WORKER_URL_SUFFIX=.example.com # worker url = SCHEME://WORKERNAME+WORKER_URL_SUFFIX eg: .example.com
- SCHEME=http
- ENABLE_REGISTER=false # only allow admin to register
- COOKIE_DOMAIN=example.com
- JWT_SECRET=123123
- AGENT_SECRET=123123
- RUN_MODE=master
- LITEFS_IS_MASTER=true
- LITEFS_LISTEN_ADDR=:20202
ports:
- 8080:8080
- 8888:8888
- 10080:10080
- 18080:18080
restart: unless-stopped
vorker-agent:
image: vorker-dev
# build:
# context: .
# dockerfile: .dev.Dockerfile
# image: vaalacat/vorker
stdin_open: true
privileged: true
tty: true
volumes:
- /tmp/workerd-agent:/workerd # change to your own path
- .:/workspaces/vorker
# - /tmp/workerd-agent-home:/home/dev
- /tmp/workerd-agent-home:/root
environment:
- WORKER_URL_SUFFIX=.example.com # worker url = SCHEME://WORKERNAME+WORKER_URL_SUFFIX eg: .example.com
- AGENT_SECRET=123123
- RUN_MODE=agent
- MASTER_ENDPOINT=http://vorker-master:8888
- NODE_NAME=agent-1
- TUNNEL_HOST=vorker-master
- LITEFS_IS_MASTER=false
- LITEFS_LISTEN_ADDR=:20202