Comments (4)
I had better luck with a newer docker version the one from docker's own repos.
and changing DEVELOPMENT to PRODUCTION
Cheers
from bracket.
Actually i did switch back to DEVELOPMENT. Try the updated docker tho from docker's official repos not the ubnutu one with this docker compose file.
services:
bracket-frontend:
image: ghcr.io/evroon/bracket-frontend
container_name: bracket-frontend
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_BASE_URL: "http://50.20.249.11:8400"
# Go to https://dashboard.hcaptcha.com/signup, create a site and put the site key here
NEXT_PUBLIC_HCAPTCHA_SITE_KEY: "xxxxx"
NODE_ENV: "production"
restart: unless-stopped
bracket-backend:
image: ghcr.io/evroon/bracket-backend
container_name: bracket-backend
ports:
- "8400:8400"
environment:
ENVIRONMENT: "DEVELOPMENT"
PG_DSN: "postgresql://bracket_dev:bracket_dev@postgres:5432/bracket_dev"
volumes:
- ./backend/static:/app/static
restart: unless-stopped
depends_on:
- postgres
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: bracket_prod
POSTGRES_USER: bracket_prod
POSTGRES_PASSWORD: bracket_prod
Cheers :)
from bracket.
Thank you for this. So I was able to get the quickstart to work on local host and from another PC. It required adding the CORS orgin to the docker compose under the front end and adding it to .env.development.
However when I try to change to production I get the following error logs:
Field required [type=missing, input_value={'pg_dsn': 'postgresql://...gres:5432/bracket_prod'}, input_type=dict] bracket-backend | For further information visit https://errors.pydantic.dev/2.6/v/missing bracket-backend | [2024-04-09 02:38:15 +0000] [10] [INFO] Worker exiting (pid: 10) bracket-backend | [2024-04-09 02:38:15 +0000] [1] [ERROR] Worker (pid:9) exited with code 3 bracket-backend | [2024-04-09 02:38:15 +0000] [1] [ERROR] Worker (pid:10) was sent SIGTERM! bracket-backend | [2024-04-09 02:38:15 +0000] [1] [ERROR] Shutting down: Master bracket-backend | [2024-04-09 02:38:15 +0000] [1] [ERROR] Reason: Worker failed to boot. bracket-backend | [2024-04-09 02:38:23 +0000] [1] [INFO] Starting gunicorn 21.2.0 bracket-backend | [2024-04-09 02:38:23 +0000] [1] [INFO] Listening at: http://0.0.0.0:8400 (1) bracket-backend | [2024-04-09 02:38:23 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker bracket-backend | [2024-04-09 02:38:23 +0000] [9] [INFO] Booting worker with pid: 9 bracket-backend | [2024-04-09 02:38:23 +0000] [10] [INFO] Booting worker with pid: 10 bracket-backend | [2024-04-09 02:38:24 +0000] [9] [ERROR] Exception in worker process
### My compose file:
`
services:
bracket-frontend:
image: ghcr.io/evroon/bracket-frontend
container_name: bracket-frontend
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_BASE_URL: "http://10.10.3.8:8400"
# Go to https://dashboard.hcaptcha.com/signup, create a site and put the site key here
NEXT_PUBLIC_HCAPTCHA_SITE_KEY: "xxxxx"
NODE_ENV: "production"
restart: unless-stopped
bracket-backend:
image: ghcr.io/evroon/bracket-backend
container_name: bracket-backend
ports:
- "8400:8400"
environment:
ENVIRONMENT: "PRODUCTION"
PG_DSN: "postgresql://bracket_prod:bracket_prod@postgres:5432/bracket_prod"
volumes:
- ./backend/static:/app/static
restart: unless-stopped
depends_on:
- postgres
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: bracket_prod
POSTGRES_USER: bracket_prod
POSTGRES_PASSWORD: bracket_prod
`
prod.env (backend)
`PG_DSN='postgresql://bracket_prod:bracket_prod@localhost:5532/bracket_prod'
JWT_SECRET='abd84ebeb6581c26b53fa30d89c4e7fbc48ee5b4f3b8ddedb7586cfeb3daca0c'
CORS_ORIGINS='*'
ADMIN_EMAIL='[email protected]'
ADMIN_PASSWORD='password'
ALLOW_USER_REGISTRATION=true
`
.env.local (frontend)
NEXT_PUBLIC_HCAPTCHA_SITE_KEY='10000000-ffff-ffff-ffff-000000000001' CORS_ORIGINS='*' ANALYTICS_SCRIPT_SRC='' ANALYTICS_DATA_DOMAIN='' ANALYTICS_DATA_WEBSITE_ID=''
I understand some of the fields are still the default. However I have tried changing those values with no luck. I'm not sure what I am doing wrong at this moment. Any help is much appreciated.
from bracket.
Actually I take back the being able to connect part. If its on the same subnet I can log in just fine, however once I move it to my DMZ subnet I can no longer sign in and get the internal error again, even with the CORS ORGIN being set to "*"
from bracket.
Related Issues (20)
- Cannot delete a Stage HOT 1
- can't push to origin HOT 1
- [Feature Request] Implement OpenID/oauth HOT 2
- Add Docker support for arm64 architecture HOT 5
- Proposal for Enhancements to the Project HOT 1
- Issues with hosting in Kubernetes HOT 3
- Datetime issues when Postgres database has a timezone set. HOT 3
- How do rounds work in round-robin?
- Display result of a round robin round HOT 3
- Add state management to tournaments HOT 1
- Improve design of overview of matches
- Allow freezing of tournament schedule HOT 1
- Issue Switching between stages HOT 1
- Internal Server Error - Debain 12 HOT 5
- Can Bracket be used to track ELO score of multiple players? HOT 2
- Please remove CORS HOT 11
- Discrepancies between API interface StageItemWithRounds and frontend's StageItemWithRounds HOT 2
- Possible oversight when rendering Swiss matches. HOT 1
- Adding French on Crowdin HOT 2
- Error: There is no draft round, so no matches can be scheduled. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bracket.