-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I have deployed the docker container as detailed, but it will not connect to ExpressVPN unless I add network_mode: host. But doing that means I cannot publish the ports I want for the services behind it.
It seems that, as defined, the container has no internet connection to be able to reach expressvpn, unless I add host networking.
Any suggestions?
#version "3.9"
networks:
default:
ipam:
driver: default
########################### EXTENSION FIELDS
# Keys common to some of the dependent services/apps
x-common-keys-apps: &common-keys-apps
environment:
- TZ=$TZ
security_opt:
- no-new-privileges:true
restart: unless-stopped
########################### SERVICES
services:
expressvpn:
image: polkaned/expressvpn
container_name: expressvpn
hostname: expressvpn
# network_mode: host
environment:
- ACTIVATION_CODE=**************************
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
privileged: true
tty: true
volumes:
- $DOCKERDIR/appdata/expressvpn/data/resolve.conf:/etc/resolve.conf
ports:
# Jackett
- 9001:9001
# Sonarr port
- 9002:9002
# Radarr port
- 9003:9003
# Radarr4K
- 9004:9004
command: /bin/bash
restart: unless-stopped
############################ Jackett - Tracker Aggregator
jackett:
<<: *common-keys-apps
image: ghcr.io/linuxserver/jackett
container_name: Jackett
depends_on:
- expressvpn
network_mode: service:expressvpn
# ports:
# - "9001:9001"
volumes:
- $DOCKERDIR/appdata/jackett/config:/config
- $DOCKERDIR/appdata/expressvpn/data/resolve.conf:/etc/resolve.conf
environment:
- PUID=$PUID_Plex
- PGID=$PGID_Plex
Metadata
Metadata
Assignees
Labels
No labels