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

no express server launched to serve 8081 port queries #1329

Open
azmur8 opened this issue Oct 29, 2023 · 1 comment
Open

no express server launched to serve 8081 port queries #1329

azmur8 opened this issue Oct 29, 2023 · 1 comment

Comments

@azmur8
Copy link

azmur8 commented Oct 29, 2023

Hello,

I've deployed mongo-express with following docker-compose.yml
version: "3.7"

networks:
mongonet:
external: true

services:
gui2:
container_name: mongo-express-gui2
build: mongo-express-1.0.2
networks:
- mongonet
environment:
- DEBUG=*
- ME_CONFIG_MONGODB_URL=mongodb://bitnami-mongodb2:27017/db?ssl=false

where mongo-express-1.0.2 is taken from here

the problem i have -- there is no express server started after launching container. this is the output from docker logs for this container:

mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "x-powered-by" to true
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "etag" to 'weak'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "etag fn" to [Function: generateETag]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "env" to 'production'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "query parser" to 'extended'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "query parser fn" to [Function: parseExtendedQueryString]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "subdomain offset" to 2
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "trust proxy" to false
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "trust proxy fn" to [Function: trustNone]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application booting in production mode
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view" to [Function: View]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "views" to '/opt/mongo-express/views'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "jsonp callback name" to 'callback'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view cache" to true
mongo-express-gui2 | No custom config.js found, loading config.default.js
mongo-express-gui2 | Welcome to mongo-express 1.0.0
mongo-express-gui2 | ------------------------
mongo-express-gui2 |
mongo-express-gui2 |
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "x-powered-by" to true
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "etag" to 'weak'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "etag fn" to [Function: generateETag]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "env" to 'production'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "query parser" to 'extended'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "query parser fn" to [Function: parseExtendedQueryString]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "subdomain offset" to 2
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "trust proxy" to false
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "trust proxy fn" to [Function: trustNone]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application booting in production mode
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view" to [Function: View]
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "views" to '/opt/mongo-express/views'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "jsonp callback name" to 'callback'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view cache" to true
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "views" to '/opt/mongo-express/lib/views'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view engine" to 'html'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:application set "view options" to { layout: false }
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router use '/' query
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router:layer new '/'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router use '/' expressInit
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router:layer new '/'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router use '/'
mongo-express-gui2 | Sun, 29 Oct 2023 21:23:46 GMT express:router:layer new '/'

please help me to understand whats missing. its kind of starts, but i'm not able to use it

@xTudoS
Copy link
Contributor

xTudoS commented Feb 27, 2024

Are you trying to access outside docker container? did you exposed the 8081 port?

like:

gui2:
  container_name: mongo-express-gui2
  build: mongo-express-1.0.2
  networks:
    - mongonet
  environment:
    - DEBUG=*
    - ME_CONFIG_MONGODB_URL=mongodb://bitnami-mongodb2:27017/db?ssl=false
   ports:
     - "8081:8081"

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

2 participants