Services run side-by-side with CI jobs
Services can be declared using the services
keyword
Services are accessed using the image
name (or an alias
)
Services are available for runners with Docker/Kubernetes executor
GitLab only starts the service
No guarantee of availability
services:
- name: nginx:stable
job_name:
script: curl -sv http://nginx
job_name:
services:
- name: nginx:stable
script: curl -sv http://nginx
See chapter Services