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
This commit is contained in:
Ian Wienand 2021-07-22 08:35:52 +10:00
parent d68f8ce7bb
commit fc4ca85f08
3 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,6 @@ services:
mariadb:
image: docker.io/library/mariadb:10.4
network_mode: host
restart: always
environment:
MYSQL_ROOT_PASSWORD: "{{ gerrit_reviewdb_mariadb_password }}"
MYSQL_DATABASE: "{{ gerrit_reviewdb_mariadb_dbname }}"

View File

@ -23,6 +23,7 @@ services:
image: docker.io/opendevorg/lodgeit
depends_on:
- mariadb
restart: always
network_mode: host
command: ['/bin/bash', '-c', 'echo "*** Starting"; sleep 30; /usr/local/bin/uwsgi']
logging:

View File

@ -5,6 +5,7 @@ version: '2'
services:
zk:
image: docker.io/library/zookeeper:3.5
restart: always
network_mode: host
user: "10001:10001"
volumes: