Run OVOS-docker with bridge network #314
-
|
Hi OVOS community, I assume that by default the docker containers are searching the messagebus on 127.0.0.1:8181. Is there any setting that allows me to change this and specify :8181 as URL for the messagebus on the other containers? Here is my ansible playbook that I am currently using to set up the containers for reference. Interesting bit is where I use - name: Create OVOS edge docker-network
tags: install,ovos
docker_network:
name: ovos_network
...
- name: Ensure ovos_messagebus container is running
tags: install,update,start,ovos
docker_container:
name: ovos_messagebus
image: "smartgic/ovos-messagebus:latest"
networks:
- name: ovos_network
volumes:
- "{{ conf_dir }}/:/home/{{ app_user }}/.config/mycroft:ro"
- "{{ base_dir }}/ovos/state:/home/{{ app_user }}/.local/state/mycroft"
- "/tmp/mycroft:/tmp/mycroft"
env:
TZ: "{{ timezone | default('UTC') }}"
labels:
ovos.service: messagebus
- name: Ensure ovos_listener container is running
tags: install,update,start,ovos
docker_container:
name: ovos_listener
image: "smartgic/ovos-listener:latest"
pull: "{{ update_docker_image | default(true) }}"
restart_policy: unless-stopped
networks:
- name: ovos_network
volumes:
- "{{ conf_dir }}/:/home/{{ app_user }}/.config/mycroft:ro"
- "{{ base_dir }}/ovos/records:/home/{{ app_user }}/.local/share/mycroft/listener"
- "{{ base_dir }}/ovos/models:/home/{{ app_user }}/.local/share/precise-lite"
- "{{ base_dir }}/ovos/vosk:/home/{{ app_user }}/.local/share/vosk"
- "{{ base_dir }}/ovos/state:/home/{{ app_user }}/.local/state/mycroft"
- "/tmp/mycroft:/tmp/mycroft"
devices:
- "/dev/snd"
env:
XDG_RUNTIME_DIR: "/run/user/{{ app_user_id.stdout }}"
PULSE_SERVER: "unix:/run/user/{{ app_user_id.stdout }}/pulse/native"
PULSE_COOKIE: "/home/{{ app_user }}/.config/pulse/cookie"
TZ: "{{ timezone | default('UTC') }}"
labels:
ovos.service: listener |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
You can set the host to point to your container https://github.com/OpenVoiceOS/ovos-config/blob/dev/ovos_config/mycroft.conf#L343 |
Beta Was this translation helpful? Give feedback.
You can set the host to point to your container https://github.com/OpenVoiceOS/ovos-config/blob/dev/ovos_config/mycroft.conf#L343