Changeset 58358 for branches/5.9/docker-compose.yml
- Timestamp:
- 06/06/2024 04:34:11 PM (6 months ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
- Property svn:mergeinfo changed
/trunk merged: 53552,53895,56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.9/docker-compose.yml
r53351 r58358 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} … … 49 51 - ./:/var/www 50 52 51 depends_on: 52 - mysql 53 # Copy or delete the Memcached dropin plugin file as appropriate. 54 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" 55 56 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 57 init: true 58 59 extra_hosts: 60 - localhost:host-gateway 53 61 54 62 ## … … 57 65 mysql: 58 66 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 67 platform: linux/amd64 59 68 60 69 networks: … … 73 82 # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0. 74 83 command: --default-authentication-plugin=mysql_native_password 84 85 healthcheck: 86 test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ] 87 timeout: 5s 88 interval: 5s 89 retries: 10 75 90 76 91 ## … … 95 110 init: true 96 111 112 extra_hosts: 113 - localhost:host-gateway 114 115 depends_on: 116 php: 117 condition: service_started 118 mysql: 119 condition: service_healthy 120 121 ## 122 # The Memcached container. 123 ## 124 memcached: 125 image: memcached 126 127 networks: 128 - wpdevnet 129 130 ports: 131 - 11211:11211 132 133 depends_on: 134 php: 135 condition: service_started 136 97 137 volumes: 98 138 # 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.