Giter Club home page Giter Club logo

Comments (9)

evroon avatar evroon commented on July 19, 2024 1

@officialdanielamani Thanks for your interest, in #208 I am trying to get the docker compose config to work, but it's not finished yet.

I can try to get it to work in a few weeks, but don't have time right now.

from bracket.

evroon avatar evroon commented on July 19, 2024 1

@officialdanielamani the docker-compose config should now work.
See: https://github.com/evroon/bracket/blob/master/docker-compose.yml

You should be able to start Bracket using the commands written here:
https://github.com/evroon/bracket#quickstart

from bracket.

evroon avatar evroon commented on July 19, 2024 1

Ah I realized I didn't write what credentials to use, I have specified that now in the README (#283).
The error you see is indeed a bug, thanks for notifying me. I have merged a fix here: #282

I created a new release, so if you pull the new docker images, it should work. (sudo docker-compose pull)

It shouldn't be necessary to add ci.env or such files, you can specify the environment variables in the docker-compose.yml. So if you want to change the admin password, add ADMIN_PASSWORD: "my password" here:

https://github.com/evroon/bracket/blob/master/docker-compose.yml#L18

But then you need to recreate the database, by deleting and recreating the database container for example.

from bracket.

GithubPatrick91 avatar GithubPatrick91 commented on July 19, 2024 1

I could used it from remote by adding these environment variables CORS_ORIGINS and NEXT_PUBLIC_API_BASE_URL to the docker-compose file:

bracket-frontend:
        ...
        environment:
            NEXT_PUBLIC_API_BASE_URL: 'http://HOST_PC_IP:8400'
       ...

    bracket-backend:
        ...
        environment:
            ENVIRONMENT: "DEVELOPMENT"
            CORS_ORIGINS: '*'
            PG_DSN: "postgresql://bracket_dev:bracket_dev@postgres:5432/bracket_dev"
        ...

from bracket.

officialdanielamani avatar officialdanielamani commented on July 19, 2024

About Docker Image, Is there any example of docker compose as I using Portainer. I try using dockerfile to compile image but there seams error in Pipeline

from bracket.

officialdanielamani avatar officialdanielamani commented on July 19, 2024

Just asking, I want to try the application, the docker is up and running but I greeted by login screen. How I want to configure admin or login the application as signup is disable in this stage?

I try add ci.env on bracket-backend but get some error. Is I am doing wrong?

Screenshot 2023-09-24 194420

from bracket.

officialdanielamani avatar officialdanielamani commented on July 19, 2024

Thanks for update, but I encounter a problem. Example I run the docker on a PC-(A) than access the docker from another PC-(B), I cannot login, it give Failed to load resource: net::ERR_BLOCKED_BY_CLIENT localhost:8400/token:1 on Inspect element console. Do I need to configure CORS_ORIGINS or this version only run on localhost?

image

from bracket.

evroon avatar evroon commented on July 19, 2024

I think CORS_ORIGINS should just contain the IP address of the PC that hosts the webserver (so PC A).
But I haven't tested it with IP addresses on a local network, only domain names on the public internet, for which it works.

from bracket.

evroon avatar evroon commented on July 19, 2024

I have updated docker-compose.yml and also the docs: https://evroon.github.io/bracket/docs/running-bracket/deployment/

I have disabled the CORS middleware for the DEV environment. Also I added NEXT_PUBLIC_API_BASE_URL to the docs and example docker-compose.yml to explain how to run the frontend on somewhere else than localhost

Does this solve the unclarity? For now, I will turn this into a discussion because it's more about help than a specific feature/bug.

from bracket.

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.