-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 2.03 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
version: "3.4"
services:
nginx:
image: nginx:${NGINX_IMG_VER}
networks:
- net
volumes:
- ./nginx:/etc/nginx/templates
- ./mantisbt_src:/opt/mtbt
ports:
- 8383:80
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
depends_on:
- mantisbt
mantisbt:
build:
context: ./mantisbt
args:
PHP_IMG_VER: ${PHP_IMG_VER}
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
target: runtime
volumes:
- ./mantisbt_src:/opt/mtbt
networks:
- net
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
depends_on:
- mysql
mantisbt-install:
build:
context: ./mantisbt
args:
MANTIS_GIT_URL: ${MANTIS_GIT_URL}
MANTIS_BRANCH: ${MANTIS_BRANCH}
PHP_IMG_VER: ${PHP_IMG_VER}
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
target: install
env_file: .mt_config.env
volumes:
- ./mantisbt_src:/tmp/mantisbt_src
environment:
- INSTALL_DST_DIR=/tmp/mantisbt_src
networks:
- net
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
depends_on:
- mysql
mysql:
image: mysql:${MYSQL_IMG_VER}
volumes:
- mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- net
volumes:
mysql:
networks:
net:
driver: bridge