Update openclaw role for Margaret Docker deployment
- Updated defaults: custom image, container name, config paths - Updated compose template: proper CMD, HOME env, user mapping - Updated tasks: image existence check, warning if not found - Added handlers: restart on compose changes - Image must be pre-built on Bart (16GB RAM) and transferred
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
services:
|
||||
openclaw:
|
||||
{{ openclaw_container_name }}:
|
||||
image: {{ openclaw_image }}
|
||||
container_name: openclaw
|
||||
container_name: {{ openclaw_container_name }}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: {{ timezone }}
|
||||
command:
|
||||
- node
|
||||
- /usr/local/lib/node_modules/openclaw/dist/index.js
|
||||
- gateway
|
||||
- --allow-unconfigured
|
||||
volumes:
|
||||
- {{ openclaw_data_dir }}:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.openclaw.rule: "Host(`{{ openclaw_host }}`)"
|
||||
traefik.http.routers.openclaw.entrypoints: websecure
|
||||
traefik.http.routers.openclaw.tls.certresolver: letsencrypt
|
||||
traefik.http.services.openclaw.loadbalancer.server.port: "3000"
|
||||
- {{ openclaw_config_dir }}:/home/glyptic/.openclaw
|
||||
networks:
|
||||
- {{ docker_network_name }}
|
||||
labels:
|
||||
traefik.enable: "false"
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
HOME: /home/glyptic
|
||||
ANTHROPIC_API_KEY: {{ openclaw_anthropic_api_key }}
|
||||
user: "{{ openclaw_user_uid }}:{{ openclaw_user_gid }}"
|
||||
|
||||
networks:
|
||||
{{ docker_network_name }}:
|
||||
|
||||
Reference in New Issue
Block a user