forked from gurock/testrail-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_nginx.yml
92 lines (79 loc) · 2.05 KB
/
docker-compose_nginx.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
92
# 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:
php:
image: "testrail_php:${TESTRAIL_VERSION:-latest}"
restart: unless-stopped
networks:
- testrail
volumes:
- 'testrail_config:/var/www/testrail/config/'
- 'testrail_root:/var/www/testrail'
- 'testrail_opt:/opt/testrail'
srv:
image: testrail/nginx:latest
restart: unless-stopped
depends_on:
- php
networks:
- testrail
ports:
- "${HTTP_PORT:-8000}:80"
volumes:
- 'testrail_root:/var/www/testrail'
- 'testrail_opt:/opt/testrail'
db:
image: testrail/mariadb: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'
cassandra:
image: testrail/cassandra:latest
networks:
- testrail
volumes:
- 'testrail_cassandra:/var/lib/cassandra'
networks:
testrail:
driver: bridge
volumes:
testrail_root:
driver: local
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_cassandra:
driver: local
driver_opts:
type: none
device: "$PWD/${CASSANDRA_PATH:-_cassandra}"
o: bind
testrail_config:
driver: local
driver_opts:
type: none
device: "$PWD/${CONFIG_PATH:-_config}"
o: bind