Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Docker container listening on 127.0.0.1:8080 #40

Open
paulb-smartit opened this issue Jun 2, 2023 · 0 comments
Open

Docker container listening on 127.0.0.1:8080 #40

paulb-smartit opened this issue Jun 2, 2023 · 0 comments

Comments

@paulb-smartit
Copy link

Upgrading from 0.21rc2 to 0.21.1 results in movim listening on 127.0.0.1:8080 and not 0.0.0.0:8080. This causes the web application to be unable to connect to the movim server.

When issuing a netstat command within the movim container, I see it is only listening on localhost, meaning the nginx container cannot connect to port 8080. Nothing in the environment settings has changed other than the version number.

Seems to be ignoring the MOVIM_INTERFACE setting.

Snippet docker-compose.yml

version: '3.7'
services:
  movim:
    depends_on:
      nginx:
        condition: service_started
      prosody:
        condition: service_started
    environment:
      MOVIM_ADMIN: admin
      MOVIM_DOMAIN: https://chat.domain.tld
      MOVIM_INTERFACE: 0.0.0.0
      MOVIM_PASSWORD: SecretKey
      MOVIM_PORT: "8080"
      POSTGRES_DB: movim
      POSTGRES_HOST: postgresql
      POSTGRES_PASSWORD: SecretKey
      POSTGRES_PORT: "5432"
      POSTGRES_USER: movim
    image: movim/movim:0.21.1
    networks:
      default: null
    ports:
    - mode: ingress
      host_ip: 127.0.0.1
      target: 8080
      published: "37012"
      protocol: tcp
    restart: on-failure
    volumes:
    - type: bind
      source: /srv/container-volumes/movim
      target: /var/www/html
      bind:
        create_host_path: true
  nginx:
    image: nginx:mainline-alpine
    networks:
      default: null
    ports:
    - mode: ingress
      host_ip: 127.0.0.1
      target: 80
      published: "37011"
      protocol: tcp
    restart: on-failure
    volumes:
    - type: bind
      source: /srv/container-volumes/movim
      target: /var/www/html
      read_only: true
      bind:
        create_host_path: true
    - type: bind
      source: /srv/container-deployments/movim/deploy/nginx
      target: /etc/nginx/conf.d
      read_only: true
      bind:
        create_host_path: true

v0.21rc2

Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN

v0.21.1

Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant