Changeset 56464
- Timestamp:
- 08/24/2023 09:02:47 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docker-compose.yml
r54096 r56464 26 26 27 27 depends_on: 28 - php 28 php: 29 condition: service_started 30 mysql: 31 condition: service_healthy 29 32 30 33 ## … … 52 55 # Copy or delete the Memcached dropin plugin file as appropriate. 53 56 command: /bin/sh -c "if [ $LOCAL_PHP_MEMCACHED = true ]; then cp -n /var/www/tests/phpunit/includes/object-cache.php /var/www/src/wp-content/object-cache.php; else rm -f /var/www/src/wp-content/object-cache.php; fi && exec php-fpm" 54 55 depends_on:56 - mysql57 57 58 58 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. … … 84 84 command: --default-authentication-plugin=mysql_native_password 85 85 86 healthcheck: 87 test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ] 88 timeout: 5s 89 interval: 5s 90 retries: 10 91 86 92 ## 87 93 # The WP CLI container. … … 108 114 - localhost:host-gateway 109 115 116 depends_on: 117 php: 118 condition: service_started 119 mysql: 120 condition: service_healthy 121 110 122 ## 111 123 # The Memcached container. … … 120 132 - 11211:11211 121 133 134 depends_on: 135 php: 136 condition: service_started 137 122 138 volumes: 123 139 # So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume.
Note: See TracChangeset
for help on using the changeset viewer.