81265393d8
Also add a 5 minute stop grace period. This lines up with the init script we were using when this was a systemd managed service. Change-Id: I5a92bb214b96447008ad570e176adda13c4ca0cb
32 lines
732 B
Django/Jinja
32 lines
732 B
Django/Jinja
version: '2'
|
|
|
|
services:
|
|
gerrit:
|
|
image: {{ gerrit_container_image }}
|
|
network_mode: host
|
|
user: gerrit
|
|
stop_signal: SIGHUP
|
|
stop_grace_period: 5m
|
|
volumes:
|
|
{% for volume in gerrit_container_volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|
|
{% if gerrit_heap_limit is defined %}
|
|
environment:
|
|
JAVA_OPTIONS: "-Xmx{{ gerrit_heap_limit }}"
|
|
{% endif %}
|
|
ulimits:
|
|
core: 0
|
|
nofile: {{ gerrit_packed_git_open_files * 2 }}
|
|
# Utility "service" to allow us to run ad-hoc commands
|
|
shell:
|
|
image: {{ gerrit_container_image }}
|
|
restart: 'no'
|
|
command: /bin/true
|
|
network_mode: host
|
|
user: gerrit
|
|
volumes:
|
|
{% for volume in gerrit_container_volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|