-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
52 lines (51 loc) · 2.12 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
vorker-master:
build: ./
# image: vaalacat/vorker
privileged: true
volumes:
# - /tmp/workerd-master:/var/lib/litefs # if you want to enable litefs, switch to this
- /tmp/workerd-master:/workerd # change to your own path
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
# if you want to enable litefs(HA) support, set up the following variables
# ------------------------------------------------------------------------
# - LITEFS_ENABLED=true
# - LITEFS_IS_MASTER=true
# - LITEFS_LISTEN_ADDR=:20202
# - DB_PATH=/litefs/db.sqlite
# ------------------------------------------------------------------------
ports:
- 8080:8080 # reverse proxy port
- 8888:8888 # admin webui port
- 10080:10080 # tunnel reverse proxy port
- 18080:18080 # tunnel relay port
restart: unless-stopped
vorker-agent:
build: ./
privileged: true
# image: vaalacat/vorker
volumes:
# - /tmp/workerd-agent:/var/lib/litefs # if you want to enable litefs, switch to this
- /tmp/workerd-agent:/workerd # change to your own path
environment:
- WORKER_URL_SUFFIX=.example.com # worker url = SCHEME://WORKERNAME WORKER_URL_SUFFIX eg: .example.com
- AGENT_SECRET=123123 # must be same as master
- RUN_MODE=agent
- TUNNEL_HOST=vorker-master
- MASTER_ENDPOINT=http://vorker-master:8888
- NODE_NAME=agent-1 # must be different amone agents
# if you want to enable litefs(HA) support, set up the following variables
# ------------------------------------------------------------------------
# - LITEFS_ENABLED=true
# - LITEFS_IS_MASTER=false
# - LITEFS_LISTEN_ADDR=:20201 # must be different from master
# - DB_PATH=/litefs/db.sqlite
# ------------------------------------------------------------------------