I use nginx-proxy
with companion to generate SSL certs for my services.
One of my service has couple networks:
yopass:
restart: always
image: jhaals/yopass
environment:
- VIRTUAL_HOST=example.com
- LETSENCRYPT_HOST=example.com
- LETSENCRYPT_EMAIL=info@example.com
command: "--memcached=memcached:11211 --port 80 --max-length 5000000"
expose:
- "80"
networks:
db-net:
office-net:
upstream otm.black-list.info {
# Cannot connect to network 'otm_db-net' of this container
# Fallback entry
server 127.0.0.1 down;
}
Is it possible to configure nginx-proxy
to use desired network? eg. office-net