Skip to content

Commit 914e929

Browse files
committed
continue running index-wpcli to allow exec
1 parent 1e02759 commit 914e929

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ services:
9595
- ./cache:/var/www/html/cache:ro
9696

9797
index-wpcli:
98+
# continue running until shutdown (this allows docker compoes exec which is
99+
# much faster than docker compoes run)
100+
# Thank you: https://serverfault.com/a/1084975
101+
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
98102
container_name: index-wpcli
99103
depends_on:
100104
- index-wpdb

0 commit comments

Comments
 (0)