I want to connect a Rails application to an mssql db running in a docker container. Locally, I start this container with the following command
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Password123' -p 1433:1433 -d microsoft/mssql-server-linux
However, with you specify a service in a .gitlab-ci.yml file you do the following
services:
- microsoft/mssql-server-linux
This does not allow me to specify the ACCEPT_EULA=Y and SA_PASSWORD=Password123 environment variable the container needs to order to start correctly.
Can someone please advise on how I can get these env variables defined for the service so that it can start-up properly?