# How to get a Flic button to work with docker and a Pi3

**URL:** https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786
**Category:** General
**Created:** [29 July 2022 14:06 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786 "2022-07-29T14:06:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CypherMK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cyphermk/32/7936_2.png) [@CypherMK](https://discourse.nodered.org/u/CypherMK)
#### Post date: [29 July 2022 14:06 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/1 "2022-07-29T14:06:33Z")

</div>

I use a Flic bluetooth button connected to my Pi3.I have an issue converting from an installed node red using the bash script ([Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)) going to a docker version. When I use the same config files used in the original node red install, everything basically works, except this node: ([node-red-contrib-flic-buttons (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-flic-buttons)). Both node red installs are on 3.01.

So flicd is installed and configured properly. I'm also using the pi local address in the node.

So when I use the original node red install, the flic node says: connected. When I convert to docker (with the exact same config), it says: connection closed.

How to solve this? Do I need to change something in my docker compose file, so it communicate with the flicd software installed on the same pi?

I have this docker compose to start node red:

`################################################################################`

`# Node-RED Stack or Compose`

`################################################################################`

`# docker stack deploy node-red --compose-file docker-compose-node-red.yml`

`# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up`

`################################################################################`

`version: "3.7"`

`services:`

`node-red:`

`image: nodered/node-red:latest`

`environment:`

`- TZ=Europe/Amsterdam`

`ports:`

`- "1880:1880"`

`networks:`

`- node-red-net`

`volumes:`

`- /mnt/DOWNLOAD/NODERED:/data`

`volumes:`

`node-red-data:`

`networks:`

`node-red-net:`

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [29 July 2022 17:01 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/2 "2022-07-29T17:01:33Z")

</div>

Exactly which IP address did you enter in the node?

---

<div class="post-metadata">

### Author: ![CypherMK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cyphermk/32/7936_2.png) [@CypherMK](https://discourse.nodered.org/u/CypherMK)
#### Post date: [29 July 2022 17:17 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/3 "2022-07-29T17:17:52Z")

</div>

If you mean the Flic node, I've entered 192.168.1.11. That's the local ip address of that Pi. Before it was '127.0.0.1'. I also had the mqtt node not working, but changing that to that same ip address did the trick.  
Port remains the same, from the top of my head: 5551

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [29 July 2022 17:52 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/4 "2022-07-29T17:52:04Z")

</div>

Double check the flicd config I sort of remember it used to bind to 127.0.0.1, if so change it to 0.0.0.0

---

<div class="post-metadata">

### Author: ![CypherMK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cyphermk/32/7936_2.png) [@CypherMK](https://discourse.nodered.org/u/CypherMK)
#### Post date: [29 July 2022 22:58 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/5 "2022-07-29T22:58:11Z")

</div>

Default was indeed 127.0.0.1. But I also tried 0.0.0.0, 192.168.1.11 and localhost, but that does not work.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [27 September 2022 22:58 UTC](https://discourse.nodered.org/t/how-to-get-a-flic-button-to-work-with-docker-and-a-pi3/65786/6 "2022-09-27T22:58:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
