Changeset 58597 for branches/5.8/docker-compose.yml
- Timestamp:
- 06/28/2024 06:40:36 PM (11 months ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 52179,53552,53895,56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.8/docker-compose.yml
r55517 r58597 1 version: '3.7'2 3 1 services: 4 2 … … 26 24 27 25 depends_on: 28 - php 26 php: 27 condition: service_started 28 mysql: 29 condition: service_healthy 29 30 30 31 ## … … 39 40 environment: 40 41 - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false} 42 - XDEBUG_MODE=${LOCAL_PHP_XDEBUG_MODE-develop,debug} 41 43 - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false} 42 44 - PHP_FPM_UID=${PHP_FPM_UID-1000} … … 47 49 - ./:/var/www 48 50 49 depends_on: 50 - mysql 51 # Copy or delete the Memcached dropin plugin file as appropriate. 52 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" 53 54 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 55 init: true 56 57 extra_hosts: 58 - localhost:host-gateway 51 59 52 60 ## … … 54 62 ## 55 63 mysql: 56 image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 64 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 65 platform: linux/amd64 57 66 58 67 networks: … … 71 80 # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0. 72 81 command: --default-authentication-plugin=mysql_native_password 82 83 healthcheck: 84 test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ] 85 timeout: 5s 86 interval: 5s 87 retries: 10 73 88 74 89 ## … … 92 107 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 93 108 init: true 109 110 extra_hosts: 111 - localhost:host-gateway 112 113 depends_on: 114 php: 115 condition: service_started 116 mysql: 117 condition: service_healthy 94 118 95 119 ## … … 121 145 122 146 depends_on: 123 - mysql 147 php: 148 condition: service_started 149 mysql: 150 condition: service_healthy 151 152 ## 153 # The Memcached container. 154 ## 155 memcached: 156 image: memcached 157 158 networks: 159 - wpdevnet 160 161 ports: 162 - 11211:11211 163 164 depends_on: 165 php: 166 condition: service_started 124 167 125 168 volumes:
Note: See TracChangeset
for help on using the changeset viewer.