Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_notes:docker-deluge [2024-12-12 Thu wk50 22:16] – [OpenVPN setup] baumkpdocker_notes:docker-deluge [2025-06-21 Sat wk25 13:00] (current) – [Compose file] baumkp
Line 105: Line 105:
  
   *[[https://bbs.archlinux.org/viewtopic.php?id=300928|openvpn ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)]]   *[[https://bbs.archlinux.org/viewtopic.php?id=300928|openvpn ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)]]
-    *Add ''privileged: true'' after image in docker-compose.yml''+    *Add ''privileged: true'' after image in docker-compose.yml
     *Or       *Or  
 <code>devices: <code>devices:
-      - /dev/net/tun</code>+      - /dev/net/tun 
 +      </code> 
 +      
 =====docker external volumes===== =====docker external volumes=====
 There are 2 type of volume needs in this set up. There are 2 type of volume needs in this set up.
Line 182: Line 184:
 The docker build command to build the image was ''docker build -t deluge-openvpn-nftables .'' The docker build command to build the image was ''docker build -t deluge-openvpn-nftables .''
  
-The compose.yml file is: +I like a constant mac address on my private network.  Initially I start the docker container with the ''mac_address: '' directive commented out and then I copy the automatic created address into the directive to allow persistent common assign mac address. 
-<code>version: '3.9'+ 
 +++++The compose.yml file is:| 
 +<code yaml>---
 services: services:
   deluge:   deluge:
Line 191: Line 195:
     stdin_open: true     stdin_open: true
     container_name: deluge     container_name: deluge
 +    
     restart: 'unless-stopped' # always | no | on-failure [:5 (max-retries)]     restart: 'unless-stopped' # always | no | on-failure [:5 (max-retries)]
 +    
     volumes:     volumes:
       - '/mnt/docker_store/media/.config:/app/.config/deluge/'       - '/mnt/docker_store/media/.config:/app/.config/deluge/'
Line 197: Line 203:
       - '/mnt/deluge:/app/deluge'       - '/mnt/deluge:/app/deluge'
       - '/mnt/disk2/Media/Temp/Complete:/app/Complete'       - '/mnt/disk2/Media/Temp/Complete:/app/Complete'
 +    
     networks:      networks: 
       macnet1:       macnet1:
         ipv4_address: 192.168.1.98         ipv4_address: 192.168.1.98
 +        mac_address: 1e:xx:xx:xx:xx:xx
 +
     cap_add:     cap_add:
       - NET_ADMIN       - NET_ADMIN
 +
     command: /bin/sh     command: /bin/sh
 +
 +    devices:
 +      - /dev/net/tun
  
 networks: networks:
   macnet1:   macnet1:
     external: true</code>     external: true</code>
 +++++
 +
 Some basic docker compose commands: Some basic docker compose commands:
   *''docker-compose up -d'' to start up the container   *''docker-compose up -d'' to start up the container