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?