forked from phacility/phabricator
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
91 lines (84 loc) · 2.16 KB
/
docker-compose.yml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# 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: '3.4'
services:
# Phabricator Containers
phabricator.test:
image: nginx:alpine
volumes:
- ./docker/phabricator/site.conf:/etc/nginx/conf.d/default.conf:ro
- phabricator-app:/app
restart: on-failure
depends_on:
- phabricator
- tinyproxy
phabricator:
build:
context: .
dockerfile: ./Dockerfile
entrypoint: /app/entrypoint.sh
command: dev_start
environment: &phab_env
- MYSQL_HOST=phabdb
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASS=password
- PHABRICATOR_URI=http://phabricator.test/
- PHABRICATOR_CDN_URI=http://phabricator.test/
- BUGZILLA_URL=http://bmo.test
- BUGZILLA_AUTOMATION_API_KEY=8G4ly8JkxbypZgh5XrdiHWExVEjPq5S3HvMBll1K
restart: on-failure
depends_on:
- phabdb
volumes:
- phabricator-app:/app
test_phab:
build:
context: .
dockerfile: ./Dockerfile
target: test
entrypoint: /app/entrypoint.sh
command: test_phab
environment: *phab_env
restart: on-failure
depends_on:
- phabdb
test_phab_local:
build:
context: .
dockerfile: ./Dockerfile
target: test
entrypoint: /app/entrypoint.sh
command: test_phab
environment: *phab_env
depends_on:
- phabdb
volumes:
- phabricator-moz-extensions-local:/app/moz-extensions
phabdb:
image: mysql:5.7
volumes:
- phabricator-mysql-db:/var/lib/mysql
- ./docker/phabricator/mysql:/etc/mysql/conf.d:ro
environment:
- MYSQL_ROOT_PASSWORD=password
restart: on-failure
# Other Support Containers
tinyproxy:
build:
context: docker/tinyproxy
dockerfile: ./Dockerfile
ports:
- "1090:1090"
# Volume Containers
volumes:
phabricator-mysql-db:
phabricator-app:
phabricator-moz-extensions-local:
driver: local
driver_opts:
type: none
device: '$PWD/moz-extensions'
o: bind