zuul/tools/docker-compose.yaml
Albin Vass 0cb099e1be Start zookeeper with users uid in test-setup-docker.sh
The zookeeper containers entrypoint will try to switch to the user
'zookeeper' if the container is started with uid '0'. This can cause issues
when the uid for the zookeeper user inside the container and the
users uid outside the container differ since it will lead to zookeeper
getting access denied when trying to read the certificates.

This also adds logging configuration to make it easier to debug
zookeeper in the future.

Change-Id: I51db53fe093a294e804148f682053123f54adfe1
2022-03-25 08:45:19 +01:00

42 lines
910 B
YAML

version: "3"
services:
mysql:
container_name: zuul-test-mysql
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=insecure_worker
ports:
- "${ZUUL_MYSQL_PORT:-3306}:3306"
tmpfs:
- /var/lib/mysql
volumes:
- "./mysqld.cnf:/etc/mysql/conf.d/mysqld.cnf:z"
postgres:
container_name: zuul-test-postgres
image: postgres
environment:
- POSTGRES_USER=openstack_citest
- POSTGRES_PASSWORD=openstack_citest
ports:
- "5432:5432"
tmpfs:
- /var/lib/postgresql/data
zookeeper:
container_name: zuul-test-zookeeper
user: "${USER_ID}"
image: zookeeper
environment:
- ZOO_AUTOPURGE_PURGEINTERVAL=1
- ZOO_LOG4J_PROP=WARN
ports:
- "2281:2281"
tmpfs:
- /data:uid=${USER_ID}
- /datalog:uid=${USER_ID}
volumes:
- "./ca:/var/certs:z"
- "./zoo.cfg:/conf/zoo.cfg:z"