Change volumes paths to your system path and make sure those paths are added in docker settings
volumes:
- /Users/zawadzkibartek/gitlab/config:/etc/gitlab
- /Users/zawadzkibartek/gitlab/logs:/var/log/gitlab
- /Users/zawadzkibartek/gitlab/data:/var/opt/gitlabvolumes:
- /Users/zawadzkibartek/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sockvolumes:
- /Users/zawadzkibartek/repos/sii/sakila-db:/docker-entrypoint-initdb.d
- /Users/zawadzkibartek/mysql/datadir:/var/lib/mysqlthen run → docker-compose up -d
GitLab → 127.0.0.1:80
Jenkins → 127.0.0.1:8080
MySQL → jdbc:mysql://localhost:3306/sakila
containers are connected by network aliases so if you would like to
connect from jenkins to gitlab you can use alias in url
http://gitlab/root/test-1.git instead of localhost or 127.0.0.1
same from gitlab to jenkins and jenkins to mysql and mysql to gitlab
/gitlab_scripts
Install node.js and npm then run npm install
on package.json
if you want to create some users in gitlab type:
node gitlab_scripts/creatUser.js '{"name":"user-666"}'inside createUser.js there is data.token which can be generated in user profile on gitlab and is used to authenticate api requests
let data = {
'token': 'Z7rs4vnTMgobpthGpYEW',
'users_url': 'http://localhost/api/v4/users'
};
let userData = {
'email': 'test-user-api3@mailinator.com',
'username': 'test-user-api3',
'name': 'Name',
'password': 'Password',
'skype': 'Skype ID',
'linkedin': 'LinkedIn',
'twitter': 'Twitter account',
'website_url': 'Website URL',
'organization': 'Organization name',
'projects_limit': 1,
'extern_uid': '',
'provider': {},
'bio': 'api user',
'skip_confirmation': 'true'
};password is Password
all this can be changed and upgraded later P.S i can’t java script ;)





