-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (73 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
76 lines (73 loc) · 1.94 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
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
67
68
69
70
71
72
73
74
75
76
services:
traefik:
image: traefik:v2.11
container_name: traefik
restart: unless-stopped
entrypoint: ["/scripts/traefik-cmd.sh"]
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
security_opt:
- no-new-privileges:true
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
environment:
SSL_EMAIL: ${SSL_EMAIL:-}
ports:
- "80:80"
- "443:443"
volumes:
- "./scripts/traefik-cmd.sh:/scripts/traefik-cmd.sh:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "traefik_data:/letsencrypt"
networks:
- proxy
openclaw:
container_name: openclaw
image: ${OPENCLAW_IMAGE:-openclaw:local-latest}
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
env_file:
- path: .env
required: false
environment:
HOME: /home/node
TERM: xterm-256color
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
volumes:
- ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR:-./workspace}:/home/node/.openclaw/workspace
expose:
- "18789"
cap_drop:
- NET_RAW
- NET_ADMIN
security_opt:
- no-new-privileges:true
init: true
restart: unless-stopped
command:
["node", "dist/index.js", "gateway", "--bind", "lan", "--port", "18789"]
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.openclaw.rule=Host(`${DOMAIN_NAME:-localhost}`)"
- "traefik.http.routers.openclaw.entrypoints=${TRAEFIK_ROUTER_ENTRYPOINTS:-web}"
- "traefik.http.routers.openclaw.tls=${TRAEFIK_ROUTER_TLS:-false}"
- "traefik.http.routers.openclaw.tls.certresolver=${TRAEFIK_CERTRESOLVER:-}"
- "traefik.http.services.openclaw.loadbalancer.server.port=18789"
networks:
proxy:
volumes:
traefik_data: