Code Monkey home page Code Monkey logo

Comments (7)

karfly avatar karfly commented on May 16, 2024

Can you show your config.env?

from chatgpt_telegram_bot.

DimaRazb avatar DimaRazb commented on May 16, 2024

I believe it's default one:

az@vm:~/chatgpt_telegram_bot/config$ cat config.env
MONGODB_PATH=./mongodb # local path where to store MongoDB
MONGODB_PORT=27017 # MongoDB port

MONGO_EXPRESS_PORT=8081 # Mongo Express port
MONGO_EXPRESS_USERNAME=username # Mongo Express username
MONGO_EXPRESS_PASSWORD=password # Mongo Express password

from chatgpt_telegram_bot.

karfly avatar karfly commented on May 16, 2024

Looks good. Maybe you have old version of docker/docker-compose?

from chatgpt_telegram_bot.

Jacky-Bruse avatar Jacky-Bruse commented on May 16, 2024

Have you solved this problem? I have the same problem now.

from chatgpt_telegram_bot.

langtuhodo avatar langtuhodo commented on May 16, 2024

Hello, I got the error after running:

azr@U002:~/chatgpt_telegram_bot$ docker-compose --env-file config/config.env up --build ERROR: The Compose file './docker-compose.yml' is invalid because: services.mongo.ports is invalid: Invalid port "27017 # MongoDB port:27017 # MongoDB port", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] services.mongo_express.ports is invalid: Invalid port "8081 # Mongo Express port:8081 # Mongo Express port", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]

Any thoughts what's going wrong? Thanks!

try this way:
in line 9 change to: - "27017:27017"
in line 9 change to: - "8081:8081"

from chatgpt_telegram_bot.

DimaRazb avatar DimaRazb commented on May 16, 2024

I changed docker-compose and it worked!
I think I used version 1.29.2-1 previously, so I tested with v.20 and it started with no issues.

Command 'docker-compose' not found, but can be installed with:
sudo snap install docker          # version 20.10.17, or
sudo apt  install docker-compose  # version 1.29.2-1

But after starting I got this error:
image

from chatgpt_telegram_bot.

DimaRazb avatar DimaRazb commented on May 16, 2024

Please ignore me guys, I forgot to use /new.
All good, the issue was in the wrong docker-compose version.

from chatgpt_telegram_bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.