Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access fusionauth-app UI from outside container (external access)? #47

Closed
arslanakhtar61 opened this issue Apr 24, 2020 · 3 comments
Closed

Comments

@arslanakhtar61
Copy link

I am using the following docker-compose.yml for deployment cloned from following https://fusionauth.io/docs/v1/tech/installation-guide/docker

version: '3'

services:
  db:
    image: postgres:9.6
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# Un-comment to access the db service directly
    ports:
      - 5432:5432
    networks:
      - db
    restart: unless-stopped
    volumes:
      - db_data:/var/lib/postgresql/data

  search:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
    environment:
      - cluster.name=fusionauth
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=${ES_JAVA_OPTS}"
# Un-comment to access the search service directly
    ports:
      - 9200:9200
      - 9300:9300
    networks:
      - search
    restart: unless-stopped
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - es_data:/usr/share/elasticsearch/data

  fusionauth:
    image: fusionauth/fusionauth-app:latest
    depends_on:
      - db
      - search
    environment:
      DATABASE_URL: jdbc:postgresql://db:5432/fusionauth
      DATABASE_ROOT_USER: ${POSTGRES_USER}
      DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
      DATABASE_USER: ${DATABASE_USER}
      DATABASE_PASSWORD: ${DATABASE_PASSWORD}
      FUSIONAUTH_MEMORY: ${FUSIONAUTH_MEMORY}
      FUSIONAUTH_SEARCH_SERVERS: http://search:9200
      FUSIONAUTH_URL: http://fusionauth:9011
    networks:
     - db
     - search
    restart: unless-stopped
    ports:
      - 9011:9011
    volumes:
      - fa_config:/usr/local/fusionauth/config

networks:    
  db:
    driver: bridge
  search:
    driver: bridge
  
volumes:
  db_data:
  es_data:
  fa_config:

I am unable to access the fusionauth UI screeen from http://localhost:9011 or http://fusionauth:9011

How can I access the UI welcome screen from outside docker container? is there any
enableExternal: true env variable available?

Is there a way to test or ping the fusionAuth App to make sure its up and running other than using docker ps -a

@mooreds
Copy link
Contributor

mooreds commented Apr 24, 2020

Hello!

We had a bug in our a recent version of the docker image, but fixed and released it last night: #46

Sorry about that!

What is the id of your docker image? docker images | grep fusionauth. The latest as of right now is 3b69f6331776, and I just tested to make sure that would work.

Also, a good way to test the app is up and running is to run docker logs 27e4c9edd311 where 27e4c9edd311 is the docker container id, which is found by running docker ps|grep fusionauth.

@trex
Copy link
Contributor

trex commented Apr 24, 2020

If you are using docker-compose, you can also tail the FusionAuth application logs without a image id by passing the declared service name:

docker-compose logs -f fusionauth

@arslanakhtar61
Copy link
Author

Upgrading to the latest fusionauth docker image (id: 3b69f6331776) solves the issues. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants