File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
if docker ps | grep -q wordpress_nginx; then
7
7
echo Docker nginx found
8
8
else
9
- echo Docker nginx found
9
+ echo Docker nginx not found
10
10
exit
11
11
fi
12
12
13
13
if docker ps | grep -q wordpress_php; then
14
14
echo Docker php found
15
15
else
16
- echo Docker php found
16
+ echo Docker php not found
17
17
exit
18
18
fi
19
19
20
20
if docker ps | grep -q wordpress_mariadb; then
21
21
echo Docker mariadb found
22
22
else
23
- echo Docker mariadb found
23
+ echo Docker mariadb not found
24
24
exit
25
25
fi
26
26
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ version: '2'
2
2
services :
3
3
nginx :
4
4
image : evild/alpine-nginx:1.11.1-libressl
5
+ container_name : wordpress_nginx
5
6
restart : always
6
7
volumes :
7
8
- wordpress-data:/var/www/html/:ro
@@ -14,6 +15,7 @@ services:
14
15
- front
15
16
php :
16
17
image : evild/alpine-wordpress:latest
18
+ container_name : wordpress_php
17
19
restart : always
18
20
volumes :
19
21
- wordpress-data:/var/www/html
@@ -28,6 +30,7 @@ services:
28
30
- back
29
31
db :
30
32
image : mariadb:latest
33
+ container_name : wordpress_mariadb
31
34
restart : always
32
35
volumes :
33
36
- wordpress-db-data:/var/lib/mysql
You can’t perform that action at this time.
0 commit comments