![Clark Boylan](/assets/img/avatar_default.png)
Previously the merger docker-compose restart value was set to always. This caused the merger to immediately restart after asking it to gracefully stop and our check for the merger stopping: docker-compose ps -q | xargs docker wait never saw it as being stopped. Make the mergers match executors and restart only on failure. This should allow us to gracefully stop the mergers with intention and detect they are stopped for maintenance purposes. Change-Id: Ia8d12fbf6a45e4ca85174ccafd18b5d2351c26c1
17 lines
415 B
YAML
17 lines
415 B
YAML
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
merger:
|
|
restart: on-failure
|
|
image: docker.io/zuul/zuul-merger:latest
|
|
network_mode: host
|
|
user: zuul
|
|
volumes:
|
|
- /etc/zuul:/etc/zuul
|
|
- /opt/project-config:/opt/project-config
|
|
- /home/zuuld:/home/zuul
|
|
- /var/lib/zuul:/var/lib/zuul
|
|
- /var/log/zuul:/var/log/zuul
|