Skip to content

How to add basic auth on staging subdomain #1540

Answered by Alex0x4b
Alex0x4b asked this question in Questions
Discussion options

You must be logged in to vote

Some answers about how the template works

docker-compose.override.yaml is only used for development purpose when running docker compose watch

When I'm deploying in staging I running this workflow :

      - run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} build
      - run: docker compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} up -d

There is a similar workflow for production

Working implementation of basic oauth

I found a simple way to implement basic oauth on staging :

I create a new docker-compose.staging.yml to overide docker-compose.yml during staging deployment workflow:

New file: docker-compose.staging.yml

# d…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevleibelt
Comment options

Comment options

You must be logged in to vote
2 replies
@Alex0x4b
Comment options

@stevleibelt
Comment options

Answer selected by Alex0x4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants