system-config/playbooks/roles/zuul-web/files/docker-compose.yaml
James E. Blair 09935ff328 Run Zuul as the zuuld user
This avoids the conflict with the zuul user (1000) on the test
nodes.  The executor will continue to use the default username
of 'zuul' as the ansible_user in the inventory.

This change also touches the zk and nodepool deployment to use
variables for the usernames and uids to make changes like this
easier.  No changes are intended there.

Change-Id: Ib8cef6b7889b23ddc65a07bcba29c21a36e3dcb5
2020-05-20 13:17:28 -07:00

27 lines
696 B
YAML

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
web:
restart: always
image: docker.io/zuul/zuul-web:latest
network_mode: host
user: zuul
volumes:
- /etc/zuul:/etc/zuul
- /home/zuuld:/home/zuul
- /var/lib/zuul:/var/lib/zuul
- /var/log/zuul:/var/log/zuul
fingergw:
restart: always
image: docker.io/zuul/zuul-fingergw:latest
network_mode: host
# fingergw needs to run as root so it can
# grab the finger port and then drop privs
volumes:
- /etc/zuul:/etc/zuul
- /home/zuuld:/home/zuul
- /var/lib/zuul:/var/lib/zuul
- /var/log/zuul:/var/log/zuul