question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work in swarm mode

See original GitHub issue

I 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

image

But in swarm mode it just says 503

docker stack deploy -c docker-whoami.yml nginx

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
sl45smscommented, Feb 13, 2021

use deploy like :

    deploy:
      replicas: 1
      restart_policy:
        delay: 0s
        window: 120s
      placement:
        constraints: [node.role == manager]
0reactions
tkw1536commented, Apr 10, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found