Doesn't work in swarm mode
See original GitHub issueI have the following files:
- .env
DOMAIN=localhost.com
- docker-whoami.yml
version: '3.7'
networks:
default:
name: nginx-proxy
volumes:
certs:
dhpar:
vhost:
htmls:
services:
nginx:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- certs:/etc/nginx/certs
- dhpar:/etc/nginx/dhparam
- vhost:/etc/nginx/vhost.d
- htmls:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
whoami:
environment:
VIRTUAL_HOST: whoami.${DOMAIN}
image: jwilder/whoami
ports:
- 8000
When I run this in compose mode it works
docker-compose --project-name whoami -f docker-whoami.yml up -d --force-recreate --remove-orphans
But in swarm mode it just says 503
docker stack deploy -c docker-whoami.yml nginx
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Run Docker Engine in swarm mode
When you first install and start working with Docker Engine, swarm mode is disabled by default. When you enable swarm mode, you work...
Read more >Doesn't work in swarm mode · Issue #1374 · nginx-proxy/ ...
I have the following files: .env DOMAIN=localhost.com docker-whoami.yml version: '3.7' networks: default: name: nginx-proxy volumes: certs: ...
Read more >docker host pid mode doesn't work in swarm mode
My docker environment is Docker 17.09.0-ce , docker-compose 1.17.0 on Ubuntu16 . why doesn't pid mode work in swarm mode?
Read more >Docker swarm mode mesh routing is not working at all
I have docker swarm mode set up with 3 ubuntu 16.04 machines with vagrant. I don't think mesh routing is working at all....
Read more >Docker Swarm Rocks
Docker Swarm mode ideas and tools. ... So, with Docker Swarm Mode you have: ... If it doesn't work for you, then you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
use deploy like :
Duplicate of https://github.com/nginx-proxy/nginx-proxy/issues/97