summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 5dfb6fad44a788227b72af620e24e63427c3b406 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

version: '2'

services:
  bmo-web.vm:
    build: &bmo_build
      context: .
      dockerfile: Dockerfile
    command: dev_httpd
    volumes:
      - bmo-data-dir:/app/data
    tmpfs:
      - /tmp
      - /run
    environment: &bmo_env
      - LOCALCONFIG_ENV=1
      - LOG4PERL_CONFIG_FILE=log4perl-test.conf
      - BUGZILLA_UNSAFE_AUTH_DELEGATION=1
      - PORT=80
      - BMO_db_host=bmo-db.vm
      - BMO_db_name=bugs
      - BMO_db_user=bugs
      - BMO_db_pass=bugs
      - BMO_urlbase=http://bmo-web.vm/
      - BMO_memcached_namespace=bugzilla
      - BMO_memcached_servers=memcached:11211
      - 'BMO_inbound_proxies=*'
      - BZ_ANSWERS_FILE=/app/conf/checksetup_answers.txt
    depends_on:
      - bmo-db.vm
      - memcached

  bmo-jobqueue.vm:
    build: *bmo_build
    command: jobqueue
    volumes:
      - bmo-data-dir:/app/data
    tmpfs:
      - /tmp
      - /run
    environment: *bmo_env
    restart: always
    depends_on:
      - bmo-db.vm
      - memcached

  bmo-db.vm:
    image: mozillabteam/bmo-mysql:5.6
    volumes:
      - bmo-mysql-db:/var/lib/mysql
    logging:
      driver: "none"
    environment:
      - MYSQL_DATABASE=bugs
      - MYSQL_USER=bugs
      - MYSQL_PASSWORD=bugs
      - MYSQL_ALLOW_EMPTY_PASSWORD=1

  memcached:
    image: memcached:latest

  tinyproxy:
    image: mozillabteam/tinyproxy
    ports:
      - "1091:1090"

volumes:
  bmo-mysql-db:
  bmo-data-dir: