docker.sock with balena

Trying to port nginxproxy/nginx-proxy to Balena, but the docker.sock needs to to be exposed. Here’s an official example:

services:
 nginx-proxy:
   image: nginxproxy/nginx-proxy
   ports:
     - "80:80"
   volumes:
     - /var/run/docker.sock:/tmp/docker.sock:ro

This is what we’ve tried without success:

services:
  nginx-proxy:
    image: jwilder/nginx-proxy:latest
    network_mode: host
    ports:
      - 80:80
      - 443:443
    environment:
      DOCKER_HOST: /tmp/docker.sock
    volumes:
      - certs:/etc/nginx/certs
      - nginx-conf:/etc/nginx
    restart: always
    labels:
      io.resin.features.balena-socket: '1'

We weren’t able to find any info on how to achieve this. Any clues?

Hey @luandro, you can expose the balena engine socket with the io.balena.features.balena-socket=1 label in your compose file!

You can see all of the available labels in our documentation here!

Just had to change resin for balena. Thanks @klutchell, old documentation can be reallly confusing.