Clark Boylan fd88087335 Run gerritbot with a user that will be shared with matrix-gerritbot
They have roughly the same level of access so lets align things.

Change-Id: Ifbe9dae7038345e20e8b498c87a37c519829a8cc
2021-11-05 11:24:05 -07:00

18 lines
465 B
Django/Jinja

# 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
user: "{{ gerritbot_uid }}:{{ gerritbot_gid }}"
restart: always
logging:
driver: syslog
options:
tag: "docker-gerritbot"
volumes:
# This contains the main config, channel config, and ssh key
- /etc/gerritbot:/etc/gerritbot:ro