Wirecloud / docker-wirecloud

🐳 Docker Official Image packaging for WireCloud https://conwet.fi.upm.es/wirecloud
Other
8 stars 14 forks source link

Unable to launch "composable" image of wirecloud #9

Closed flopezag closed 6 years ago

flopezag commented 6 years ago

I just follow the inditacions in the description (https://github.com/Wirecloud/docker-wirecloud) about install the version of wirecloud using docker-compose and after I made the docker-compose up -d and create the corresponding admin user, I tried to access to the portal and I obtain the following information:

image

I obtain the same message in Firefox 60.0 (64-bit), Chrome v66.0.3359.139 and Safari v11.1

aarranz commented 6 years ago

Maybe you are accessing directly to wirecloud instead of using nginx? You should access through port 80 (normal http port) and not through port 8000.

flopezag commented 6 years ago

Ok, you are right, but in case of it I only could see the content in Firefox and Safari not in Chrome.

aarranz commented 6 years ago

So... the same problem than in Wirecloud/wirecloud#324. Ok, I will analyse it on that ticket.

Regarding accessing through port 8000, I have updated the docker-compose.yml example file, now port 8000 is not exposed to avoid using it by confusion.

Please, reopen this ticket if you think this is not enough.

arilwan commented 5 years ago

@aarranz I am facing similar problem here too. I am accessing fiware from a remote server (via ssh). I map an open port (53152 as seen in my docker-compose file) on the server to port 80 so I can access the Wirecloud pointing to server_ip:80 I'm not using port 8000 but I'm getting same error. My docker-compose file:

version: "3.1"

services:

 mongo:
   image: mongo:3.6
   hostname: mongo
   container_name: fiware-mongo
   ports:
     - "27017:27017"
   networks:
     - default
   command: --bind_ip_all --smallfiles
 #  volumes:
  #  - mongo-db:/data

 orion:
   image: fiware/orion
   hostname: orion
   container_name: fiware-orion
   depends_on:
     - mongo
   networks:
     - default
   ports:
     - "1026:1026"
   expose:
     - "1026"
   command: -dbhost mongo -logLevel DEBUG
   healthcheck:
    test: curl --fail -s http://localhost:1026/version || exit 1
 lightweightm2m-iotagent:
    image: telefonicaiot/lightweightm2m-iotagent
    hostname: idas
    container_name: fiware-iotagent
    depends_on:
     - mongo
    networks:
     - default
    expose:
     - "4041"
     - "5684"
    ports:
     - "4041:4041"
     - "5684:5684/udp"
    environment:
     - "IOTA_CB_HOST=orion"
     - "IOTA_CB_PORT=1026"
     - "IOTA_NORTH_PORT=4041"
     - "IOTA_REGISTRY_TYPE=mongodb"
     - "IOTA_LOG_LEVEL=DEBUG"
     - "IOTA_TIMESTAMP=true"
     - "IOTA_MONGO_HOST=mongo"
     - "IOTA_MONGO_PORT=27017"
     - "IOTA_MONGO_DB=lwm2miotagent"
     - "IOTA_HTTP_PORT=5684"
     - "IOTA_PROVIDER_URL=http://lightweightm2m-iotagent:4041"
     - "IOTA_AUTOCAST=true"
     - "IOTA_CB_NGSI_VERSION=v2"
    healthcheck:
     test: curl --fail -s http://localhost:4041/iot/about || exit 1
      comment
 cygnus:
    image: fiware/cygnus-ngsi:latest
    hostname: cygnus
    container_name: fiware-cygnus
    depends_on:
     - postgres
    networks:
     - default
    expose:
     - "5080"
    ports:
     - "5050:5050"
     - "5080:5080"
    environment:
     - "CYGNUS_POSTGRESQL_HOST=postgres"
     - "CYGNUS_POSTGRESQL_PORT=5432"
     - "CYGNUS_POSTGRESQL_USER=postgres"
     - "CYGNUS_POSTGRESQL_PASS=password"
     - "CYGNUS_LOG_LEVEL_=DEBUG"
     - "CYGNUS_SERVICE_PORT=5050"
     - "CYGNUS_API_PORT=5080"
     - "CYGNUS_POSTGRESQL_ENABLE_CACHE=true"
    healthcheck:
      test: curl --fail -s http://localhost:5080/v1/version || exit 1
 nginx:
    restart: always
    container_name: fiware-nginx
    image: nginx
    networks:
      - default
    ports:
      - 53152:80
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - ./wirecloud-static:/var/www/static:ro
      - ./nginx_logs:/var/log/nginx
    depends_on:
      - wirecloud
 postgres:
    restart: always
    image: postgres:10
    hostname: postgres
    container_name: fiware-postgres
    expose:
      - "5432"
    ports:
      - "5432:5432"
    networks:
      - default
    environment:
      - "POSTGRES_PASSWORD=password"
      - "POSTGRES_USER=postgres"
      - "POSTGRES_DB=postgres"
    volumes:
      - ./postgres-data:/var/lib/postgresql/data
 grafana:
    restart: always
    image: grafana/grafana
    container_name: fiware-grafana
    depends_on:
      - postgres
    ports:
      - "53153:3000"
    environment:
      - GF_INSTALL_PLUGINS=crate-datasource,grafana-clock-panel,grafana-worldmap-panel
    volumes:
      - ./grafana:/var/lib/grafana:rw
 elasticsearch:
    restart: always
    container_name: fiware-elasticsearch
    image: elasticsearch:2.4
    volumes:
      - ./elasticsearch-data:/usr/share/elasticsearch/data
    command: elasticsearch  -Des.index.max_result_window=50000
 memcached:
    restart: always
    container_name: fiware-memcached
    image: memcached:1
    command: memcached -m 2048m
 wirecloud:
    restart: always
    image: fiware/wirecloud
    container_name: fiware-wirecloud
    networks:
      - default
    depends_on:
        - postgres
        - elasticsearch
        - memcached
    environment:
        - DEBUG=False
        # - DEFAULT_THEME=wirecloud.defaulttheme
        - DB_HOST=postgres
        - DB_PASSWORD=password
        - FORWARDED_ALLOW_IPS=*
        - ELASTICSEARCH2_URL=http://elasticsearch:9200/
        - MEMCACHED_LOCATION=memcached:11211
        # Uncomment the following environment variables to enable IDM integration
        #- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
        #- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
        #- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
    volumes:
      - ./wirecloud-data:/opt/wirecloud_instance/data
      - ./static:/var/www/static
        #- ./settings.py:/opt/wirecloud_instance/wirecloud_instance/settings.py:ro

Output: wirecloud 11 50 44