goauthentik / goauthentik/authentik

Configuring authentik to be reachable via docker bridge network

Open
#11,778 0 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 2h
Merged PRs (30d)
659

Description

**Describe your question/**
I have a docker-compose setup with multiple services. Most of which are background workers but still need client authentication. The services are connected via a Docker bridge network. Calling the token endpoint with client_credentials grant_type and the Docker-internal service name (https://idp:9000/application/o/token) of the Authentik server leads to a 405 response.

Doing the same request from the host with `localhost:9000` instead of `idp:9000` works.

What do I need to configure to make it work?

**Relevant info**
[docker-compose.yml.txt](https://github.com/user-attachments/files/17486362/docker-compose.yml.txt)

**Screenshots**
![grafik](https://github.com/user-attachments/assets/968a3a20-db54-4e0c-a52b-8af4da4ec1bc)
![grafik](https://github.com/user-attachments/assets/6aa23b1c-a768-4be9-ab82-1cf8bb9f2708)

**Logs**
Output of docker-compose logs or kubectl logs respectively

**Version and Deployment (please complete the following information):**

- authentik version: 2024.8.3
- Deployment: docker-compose

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.