Skip to content

Commit

Permalink
Its better to use container, when using swarm/stacks
Browse files Browse the repository at this point in the history
Unless using a very specific config for docker and scalability, this needs to be set as a container name and not a service name.
  • Loading branch information
ZaxLofful authored Aug 2, 2022
1 parent 1b086b1 commit c7e1b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ services:
restart: unless-stopped
vpn:
image: ghcr.io/bubuntux/nordvpn
container_name: vpn
cap_add:
- NET_ADMIN # Required
- NET_RAW # Required
Expand All @@ -87,7 +88,7 @@ services:
- net.ipv6.conf.all.disable_ipv6=1 # Recomended if using ipv4 only
torrent:
image: ghcr.io/linuxserver/qbittorrent
network_mode: service:vpn
network_mode: container:vpn
labels:
- traefik.enable=true
- traefik.http.services.torrent.loadbalancer.server.port=8080
Expand Down

0 comments on commit c7e1b55

Please sign in to comment.