How to modify a gitlab CI service, need to increase the number of available postgres connections

I am using postgres:12-alpine service, and I need to increase the maximum number of available postgres connections. Generally in order to do that I would need to modify postgres.conf file.

Is there a way for me to access and edit a config file on that system that provides postgres:12-alpine service? Or perhaps some other way to exit max_connections setting of postgres?

1 Like

We were able to solve this by using the command keyword inside the service:

- name: postgres:12-alpine
alias: postgres
- “postgres”
- “-c”
- “max_connections=1000”

You mean “command” keyword :slight_smile:

Ah yes, typo :slight_smile: