Skip to content

Commit 6ee68d6

Browse files
committed
fix container name
1 parent 9e0d789 commit 6ee68d6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ci/wordpress_test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ set -e
66
if docker ps | grep -q wordpress_nginx; then
77
echo Docker nginx found
88
else
9-
echo Docker nginx found
9+
echo Docker nginx not found
1010
exit
1111
fi
1212

1313
if docker ps | grep -q wordpress_php; then
1414
echo Docker php found
1515
else
16-
echo Docker php found
16+
echo Docker php not found
1717
exit
1818
fi
1919

2020
if docker ps | grep -q wordpress_mariadb; then
2121
echo Docker mariadb found
2222
else
23-
echo Docker mariadb found
23+
echo Docker mariadb not found
2424
exit
2525
fi
2626

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '2'
22
services:
33
nginx:
44
image: evild/alpine-nginx:1.11.1-libressl
5+
container_name: wordpress_nginx
56
restart: always
67
volumes:
78
- wordpress-data:/var/www/html/:ro
@@ -14,6 +15,7 @@ services:
1415
- front
1516
php:
1617
image: evild/alpine-wordpress:latest
18+
container_name: wordpress_php
1719
restart: always
1820
volumes:
1921
- wordpress-data:/var/www/html
@@ -28,6 +30,7 @@ services:
2830
- back
2931
db:
3032
image: mariadb:latest
33+
container_name: wordpress_mariadb
3134
restart: always
3235
volumes:
3336
- wordpress-db-data:/var/lib/mysql

0 commit comments

Comments
 (0)