Skip to content

Commit 0ae31ff

Browse files
committed
Added WP CLI to the docker-compose file
1 parent 4b8b201 commit 0ae31ff

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,17 @@ services:
2525
depends_on:
2626
- db
2727
ports:
28-
- 8081:8080
28+
- 8081:8080
29+
wpcli:
30+
image: wordpress:cli
31+
environment:
32+
WORDPRESS_DB_HOST: db:3306
33+
WORDPRESS_DB_PASSWORD: wordpress
34+
WORDPRESS_DB_USER: wordpress
35+
WORDPRESS_DB_NAME: wordpress
36+
volumes_from:
37+
- wordpress
38+
depends_on:
39+
- db
40+
entrypoint: wp
41+
command: "--info"

0 commit comments

Comments
 (0)