-
Notifications
You must be signed in to change notification settings - Fork 581
/
docker-compose.yml
59 lines (55 loc) · 1.21 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
version: "3.9"
networks:
testlink:
name: testlink
services:
testlink-mysql:
image: mysql:8.3.0
networks:
- testlink
restart: unless-stopped
user: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- mysql:/var/lib/mysql
testlink-maildev:
image: maildev/maildev:latest
networks:
- testlink
ports:
- 1080:1080
- 1025:1025
restart: unless-stopped
environment:
- NODE_TLS_REJECT_UNAUTHORIZED=0
testlink-app: &testlink-app
image: testlink:1.9.20
build: .
restart: unless-stopped
depends_on:
testlink-mysql:
condition: service_started
testlink-maildev:
condition: service_started
networks:
- testlink
ports:
- 8080:80
volumes:
- ./:/var/www/testlink
- ./logs:/var/testlink/logs
- ./upload_area:/var/testlink/upload_area
testlink-restore:
<<: *testlink-app
depends_on:
testlink-app:
condition: service_started
restart: no
ports: []
profiles:
- tools
command: ['/bin/bash', '-c', 'cd ./docs/db_sample && ./restore_sample.sh']
volumes:
mysql: