We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e02759 commit 914e929Copy full SHA for 914e929
docker-compose.yml
@@ -95,6 +95,10 @@ services:
95
- ./cache:/var/www/html/cache:ro
96
97
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'
102
container_name: index-wpcli
103
depends_on:
104
- index-wpdb
0 commit comments