https://github.com/yuriidorosh/gitlab-nginx-docker-setup
https://github.com/yuriidorosh/gitlab-nginx-docker-setup
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuriidorosh/gitlab-nginx-docker-setup
- Owner: YuriiDorosh
- Created: 2025-06-29T19:15:51.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-07-10T04:03:05.000Z (6 months ago)
- Last Synced: 2025-08-24T12:41:07.340Z (5 months ago)
- Language: Makefile
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Creating user without SMTP:
```bash
curl --header "PRIVATE-TOKEN: " \
-X POST "http://$GITLAB_HOST/api/v4/users" \
--data "email=user@example.com&username=newuser&name=New+User&password=Str0ng!Pass&skip_confirmation=true"
```
or creating with UI admin and create password by rails ORM:
```bash
make set-pass USER=admin1 PASS='MyN3wPass!'
```
->
```bash
▸ Setting password for 'admin1'…
docker compose exec -e NEW_PASS="MyN3wPass!" -T gitlab \
gitlab-rails runner "\
u = User.find_by_username('admin1'); \
abort('User not found') unless u; \
u.password = ENV['NEW_PASS']; \
u.password_confirmation = ENV['NEW_PASS']; \
u.save!; \
puts '✓ Password updated';"
WARN[0000] /mnt/c/Users/atom/Desktop/WSL PROJECTS/gitlab-nginx-docker-setup/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
✓ Password updated
```