Skip to content

admin credentials via app.ini or env #6943

Answered by zfrhv
zfrhv asked this question in Q&A
Discussion options

You must be logged in to vote

nevermind, you dont need to install the gogs cli, its already built in the container.
you can simply run:

docker exec gogs /bin/bash -c 'USER=git /app/gogs/gogs admin create-user --admin --name admin --password admin123 --email admin@gmail.com'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zfrhv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant