linuxserver / docker-hedgedoc

GNU General Public License v3.0
43 stars 7 forks source link

Container not listening on IPv6 #38

Closed MaZe3D closed 1 year ago

MaZe3D commented 1 year ago

Is there an existing issue for this?

Current Behavior

The container is not listening on the IPv6 Interface. netstat -tlnp from within the container shows:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.11:44807        0.0.0.0:*               LISTEN      -

As you can see the container is only listening on the IPv4 Inteface.

Expected Behavior

The contatiner should listen on IPv6

Steps To Reproduce

Run the docker in a IPv6-capable environment and let a reverse proxy access it via its IPv6 address. It won't work. IPv4 is working, but as I migrate my services to IPv6 only this is difficult.

Environment

- OS: Unraid
- How docker service was installed: on OS

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='hedgedoc'
  --net='br0.69'
  --ip6='fd4f:71d8:b745:45:666c:5180:d0a8:e3e0'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Z-Storage"
  -e HOST_CONTAINERNAME="hedgedoc"
  -e 'TCP_PORT_3000'='3000'
  -e 'CMD_DOMAIN'='hedgedoc.mydomain.example'
  -e 'CMD_URL_ADDPORT'='false'
  -e 'CMD_PROTOCOL_USESSL'='true'
  -e 'DB_URL'='postgresql://hedgedoc:somePassword@[fd4f:71d8:b745:45:2128:752b:59d4:8f37]:5432/hedgedoc'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:3000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/hedgedoc-logo.png'
  -v '/mnt/user/appdata/hedgedoc':'/config':'rw' 'lscr.io/linuxserver/hedgedoc'

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
2023-07-14T22:58:26.050Z warn:  Session secret not set. Using random generated one. Please set `sessionSecret` in your config.json file. All users will be logged out.
2023-07-14T22:58:26.734Z info:  All migrations performed successfully
2023-07-14T22:58:26.748Z info:  HTTP Server listening at 0.0.0.0:3000
2023-07-14T22:58:27.547Z info:  127.0.0.1 - - [14/Jul/2023:22:58:27 +0000] "GET /_health HTTP/1.1" 200 14 "-" "curl/8.1.2"

[ls.io-init] done.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.