summaryrefslogtreecommitdiff
path: root/tools/docker-compose.yaml
blob: 05b4905e2eb07a2198bdcfadd41797b4c6373e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3"

services:
  mysql:
    container_name: zuul-test-mysql
    image: mysql:8.0
    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"