forked from gurock/testrail-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (54 loc) · 1.49 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
# An explanation for docker or docker-compose newcomers can be found in the 'docker-compose_documents.yml' file
# Please also use the official docker documentation as a reference:
# https://docs.docker.com/ and https://docs.docker.com/compose/
# Instructions for necessary settings during setup when using docker-compose deployment can be found here:
# TBD
version: '3'
services:
srv:
image: "testrail/apache:${TESTRAIL_VERSION:-latest}"
restart: unless-stopped
networks:
- testrail
ports:
- "${HTTP_PORT:-8000}:80"
volumes:
- 'testrail_config:/var/www/testrail/config/'
- 'testrail_opt:/opt/testrail'
db:
image: testrail/mysql:latest
restart: unless-stopped
depends_on:
- srv
networks:
- testrail
volumes:
- 'testrail_mysql:/var/lib/mysql'
environment:
MYSQL_USER: "${DB_USER:-testrail}"
MYSQL_PASSWORD: "${DB_PWD:-testrail}"
MYSQL_DATABASE: "${DB_NAME:-testrail}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PWD:-my-secret-password}"
MYSQL_ALLOW_EMPTY_PASSWORD: 'false'
networks:
testrail:
driver: bridge
volumes:
testrail_opt:
driver: local
driver_opts:
type: none
device: "$PWD/${OPT_PATH:-_opt}"
o: bind
testrail_mysql:
driver: local
driver_opts:
type: none
device: "$PWD/${MYSQL_PATH:-_mysql}"
o: bind
testrail_config:
driver: local
driver_opts:
type: none
device: "$PWD/${CONFIG_PATH:-_config}"
o: bind