-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.inpsec.disabledtest.yml
112 lines (104 loc) · 2.41 KB
/
docker-compose.inpsec.disabledtest.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.1'
services:
nginx:
build: .
restart: always
command: /scripts/run-nginx.sh
user: "33:33"
ports:
- 8080:8080
volumes:
- ${PWD}/conf/nginx.conf:/etc/nginx/nginx.conf
- ${PWD}/uploads:/app/wp-content/uploads
links:
- php-fpm
php-fpm:
build: .
restart: always
command: /scripts/run-php.sh
user: "33:33"
ports:
- 9000:9000
volumes:
- ${PWD}/conf/fpm-pool.conf:/etc/php/7.4/fpm/pool.d/www.conf
- ${PWD}/conf/fpm.conf:/etc/php/7.4/fpm/php-fpm.conf
- ${PWD}/uploads:/app/wp-content/uploads
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
links:
- mysql
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
preinstall-hook:
build: .
restart: "no"
command: /scripts/preinstall-hook.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
WORDPRESS_BLOGNAME: toller Blog
WORDPRESS_BLOGURL: example.loc
WORDPRESS_USERNAME: admin
WORDPRESS_PASSWORD: daAfG3423sf
WORDPRESS_EMAIL: [email protected]
WP_PLUGINS: "hello.php"
SLEEP: 10
links:
- mysql
postinstall-hook:
build: .
restart: "no"
command: /scripts/preinstall-hook.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
WORDPRESS_BLOGNAME: toller Blog
WORDPRESS_BLOGURL: example.loc
WORDPRESS_USERNAME: admin
WORDPRESS_PASSWORD: daAfG3423sf
WORDPRESS_EMAIL: [email protected]
WP_PLUGINS: "hello.php"
SLEEP: 20
links:
- mysql
run-cron:
build: .
restart: "no"
command: /scripts/run-cron.sh
user: "33:33"
environment:
MYSQL_HOST: mysql
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
SLEEP: 30
links:
- mysql
sut:
depends_on:
- nginx
- php-fpm
- mysql
links:
- nginx
- php-fpm
- mysql
image: chef/inspec
volumes:
- .:/share/:ro
command: exec tests