Ian Wienand fc4ca85f08 Update docker-compose restart flags
After I replace the docker packages some services I thought would come
back did not.

Lodegit seems to be an oversight, add restart always.

Also make sure the ZK containers start themselves.

I believe with Gerrit we've made the choice to not start automatically
due to the general high-touch nature of restarts.  Keep the database
consistent and remove the auto restart there.

Change-Id: I98fa3055ac269564ed96570df0700b2aad24e4d2
2021-07-22 08:35:52 +10:00

24 lines
635 B
YAML

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
zk:
image: docker.io/library/zookeeper:3.5
restart: always
network_mode: host
user: "10001:10001"
volumes:
- "/var/zookeeper/conf/zoo.cfg:/conf/zoo.cfg"
- "/var/zookeeper/data:/data"
- "/var/zookeeper/datalog:/datalog"
- "/var/zookeeper/logs:/logs"
- "/var/zookeeper/tls:/tls"
zookeeper-statsd:
restart: always
image: docker.io/opendevorg/zookeeper-statsd:latest
network_mode: host
environment:
STATSD_HOST: graphite.opendev.org
STATSD_PORT: 8125