
Change restart mode to always instead of 'no' as testing shows we won't restart in a loop in CI and we want production to restart automatically. Also add ssh pubkey contents for completeness and simplicity if we need to find those in the future. Change-Id: I81573a1ad1574419194eb3088070dda95fb81fff
13 lines
329 B
YAML
13 lines
329 B
YAML
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
gerritbot:
|
|
image: docker.io/opendevorg/gerritbot:latest
|
|
network_mode: host
|
|
restart: always
|
|
volumes:
|
|
# This contains the main config, channel config, and ssh key
|
|
- /etc/gerritbot:/etc/gerritbot
|