Skip to content

Commit ab2fd60

Browse files
committed
update container names
1 parent 417bae5 commit ab2fd60

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN a2enmod rewrite
4343

4444

4545
# create an index directory
46-
RUN mkdir /var/www/index
46+
RUN mkdir -p /var/www/index
4747

4848
# Install Composer
4949
RUN curl -sS https://getcomposer.org/installer \

docker-compose.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ version: '2.4'
99

1010
services:
1111

12-
index-wordpress:
13-
container_name: index-wordpress
12+
index-web:
13+
container_name: index-web
1414
depends_on:
15-
- index-wpdb
15+
- index-db
1616
build: .
1717
networks:
1818
- index-backend
1919
environment:
2020
MYSQL_ROOT_PASSWORD: root
21-
PMA_HOST: index-wpdb
21+
PMA_HOST: index-db
2222
PMA_PORT: 3306
2323
WORDPRESS_CONFIG_EXTRA: |
2424
# Use dispatch port by default
@@ -28,7 +28,7 @@ services:
2828
define('WP_HOME', 'http://localhost:8080');
2929
define('WP_SITEURL', 'http://localhost:8080');
3030
}
31-
WORDPRESS_DB_HOST: index-wpdb:3306
31+
WORDPRESS_DB_HOST: index-db:3306
3232
WORDPRESS_DB_PASSWORD: root
3333
WORDPRESS_DB_USER: root
3434
WORDPRESS_DB_name: wordpress
@@ -62,8 +62,8 @@ services:
6262
- ./cache:/var/www/index/cache:ro
6363

6464

65-
index-wpdb:
66-
container_name: index-wpdb
65+
index-db:
66+
container_name: index-db
6767
environment:
6868
MYSQL_DATABASE: wordpress
6969
MYSQL_ROOT_PASSWORD: root

0 commit comments

Comments
 (0)