Code Monkey home page Code Monkey logo

Comments (6)

IHateNameStealers avatar IHateNameStealers commented on May 30, 2024 1

I did test the develop branch, and got it all working. After that I decided to give the docker version a try again, and I did manage to get it to work too.

My setup looks like so: (10.0.0.157 is the IP of the system where my Freqtrade and Frequi are running on)
home/ft_userdata/user_data/config.json

...
...
    "api_server": {
        "enabled": true,
        "listen_ip_address": "0.0.0.0",
        "listen_port": 8080,
        "verbosity": "info",
        "jwt_secret_key": "somethingrandom",
        "CORS_origins": ["http://10.0.0.157"],
        "username": "54321",
        "password": "12345"
...
...

home/ft_userdata/docker-compose.yml

---
version: '3'
services:
  freqtrade:
    image: freqtradeorg/freqtrade:stable
    restart: unless-stopped
    container_name: freqtrade
    volumes:
      - "./user_data:/freqtrade/user_data"
    ports:
      -  "10.0.0.157:8080:8080"
    command: >
      trade
      --logfile /freqtrade/user_data/logs/freqtrade.log
      --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
      --config /freqtrade/user_data/config.json
      --strategy Simple

/home/frequi/docker-compose.yml

---
version: '3.8'
services:
  frequi:
    build:
      context: .
      dockerfile: "./Dockerfile"
    image: frequi
    # image: freqtradeorg/frequi:master
    restart: unless-stopped
    ports:
      - "80:80"

After starting both "containers" I'm able to access the FreqUI and Freqtrader.
Use as URL (in my case) http://10.0.0.157, and when asked for API Url, use (again in my case) http://10.0.0.157:8080

Please note that this is within my LAN. I have all ports to 10.0.0.158 closed to to the real world.

from frequi.

xmatthias avatar xmatthias commented on May 30, 2024 1

if you're using the develop version, you do not need the frequi container anymore.

Simply navigate to the url of the freqtrade container's root url (probably 10.x:8080 and you should be up and running.
You'll also not need CORS with that setup.

from frequi.

IHateNameStealers avatar IHateNameStealers commented on May 30, 2024 1

That is correct, and as mentioned above I did manage to get that to work. However. I wanted to try this with the none dev. version.

from frequi.

xmatthias avatar xmatthias commented on May 30, 2024

you'll need to use a different port for Frequi.
You can't start 2 different processes (or docker-containers) that both use port 8080.

If it's just about using freqUI, i would recommend using the develop branch / image of freqtrade, which has freqUI included.

from frequi.

IHateNameStealers avatar IHateNameStealers commented on May 30, 2024

Thank you for the update Matthias,
Yes I did try this too., And I did manage to get them both up and running.
(I think that is was something like this)
Freqtrade / docker-compose.yml on "127.0.0.1:8081:8080"
Freqtrade / config.json on "0.0.0.0" and 8080
and FreqUI docker-compose.yml on 8080:80

However. When I tried to login, FreqUI kept telling me something about making sure that I could access the "ping" (witch I did), and that CORS needed to be setup.

Anyway. As this is a test setup I'm going to give the develop branch a run.

from frequi.

xmatthias avatar xmatthias commented on May 30, 2024

Then it's fine 👍

from frequi.

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.