Skip to content

fix(docker): set FLAGSMITH_FRONTEND_URL in docker-compose.yml - #9181

Merged
Zaimwa9 merged 3 commits into
Flagsmith:mainfrom
shrey-Bish:fix/docker-compose-frontend-url
Dec 2, 2026
Merged

Zaimwa9 merged 3 commits into
Flagsmith:mainfrom
shrey-Bish:fix/docker-compose-frontend-url

Conversation

@shrey-Bish

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature. (Not required: no new setting, only a value in the example compose file.)
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

The official docker-compose.yml serves the API and the dashboard together on localhost:8000, but doesn't set FLAGSMITH_FRONTEND_URL. Flagsmith then falls back to http://localhost:8080, so its OAuth metadata sends the command-line login to a page that doesn't exist:

GET http://localhost:8000/.well-known/oauth-authorization-server
"authorization_endpoint": "http://localhost:8080/oauth/authorize/"

This sets FLAGSMITH_FRONTEND_URL to the address the compose file already publishes, next to FLAGSMITH_DOMAIN (which only covers links in emails), with the same "Change this in production" note.

How did you test this code?

Manually, on Flagsmith 2.295.2 with the official docker-compose.yml:

  1. docker compose up -d, then curl -s http://localhost:8000/.well-known/oauth-authorization-server: authorization_endpoint is http://localhost:8080/oauth/authorize/.
  2. Add the line, docker compose up -d again (only the Flagsmith containers are recreated).
  3. The same request now gives http://localhost:8000/oauth/authorize/.
  4. An API token issued before the restart still works (GET /api/v1/projects/ returns 200), so nobody is signed out.

@shrey-Bish
shrey-Bish requested a review from a team as a code owner November 29, 2026 09:03
@shrey-Bish
shrey-Bish requested review from Zaimwa9 and removed request for a team November 29, 2026 09:03
@vercel

vercel Bot commented Nov 29, 2026

Copy link
Copy Markdown

@shrey-Bish is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval skipped because this PR is from an external contributor.

Re-trigger cubic

@Zaimwa9 Zaimwa9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, with some additional documentation this would be good to go

Comment thread docker-compose.yml Resolved
@Zaimwa9 Zaimwa9 self-assigned this Nov 30, 2026
@shrey-Bish
shrey-Bish requested a review from a team as a code owner December 1, 2026 20:08
@shrey-Bish
shrey-Bish requested review from matthewelwell and removed request for a team December 1, 2026 20:08
@github-actions github-actions Bot added the docs Documentation updates label Dec 1, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@matthewelwell
matthewelwell requested a review from Zaimwa9 December 1, 2026 20:09

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval skipped because this PR is from an external contributor.

Re-trigger cubic

@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
flagsmith-frontend-preview Ignored Ignored Preview Dec 2, 2026 9:54am UTC

Request Review

@Zaimwa9 Zaimwa9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, thanks for the contribution

@Zaimwa9
Zaimwa9 merged commit 626c400 into Flagsmith:main Dec 2, 2026
19 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants