Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 52,034
    • Issues 52,034
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,574
    • Merge requests 1,574
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #23671
Closed
Open
Issue created Aug 13, 2018 by Thomas Grainger@graingert

support all options from `docker-compose.yml` in gitlab runner services

Problem to solve

https://forum.gitlab.com/t/specifying-environment-variables-for-gitlab-ci-services/10776 Currently you can only set environment variables for all docker services - you can't start two mysql with different passwords.

Further details

Support as much syntax as possible from https://docs.docker.com/compose/compose-file/

currently you have to do this:

services:
  - mysql:latest
  - mysql:latest

variables:
  MYSQL_DATABASE: el_duderino
  MYSQL_ROOT_PASSWORD: mysql_strong_password

Proposal

but I want to do this:

services:
  - image: mysql:latest
    environment:
      - "MYSQL_DATABASE=el_duderino"
      - "MYSQL_ROOT_PASSWORD=mysql_strong_password"
  - image: mysql:latest
    environment:
      - "MYSQL_DATABASE=hamspam"
      - "MYSQL_ROOT_PASSWORD=another_mysql_strong_password"

What does success look like, and how can we measure that?

success is the number of possible docker-compose flags that can be used

(If no way to measure success, link to an issue that will implement a way to measure this)

Links / references

Assignee
Assign to
Time tracking