Changeset 58302 for branches/6.2/docker-compose.yml
- Timestamp:
- 06/03/2024 05:36:35 PM (6 months ago)
- Location:
- branches/6.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.2
- Property svn:mergeinfo changed
/trunk merged: 57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/6.2/docker-compose.yml
r54096 r58302 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 ## … … 53 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" 54 55 55 depends_on:56 - mysql57 58 56 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 59 57 init: true … … 66 64 ## 67 65 mysql: 68 image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 66 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} 67 platform: linux/amd64 69 68 70 69 networks: … … 83 82 # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0. 84 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 85 90 86 91 ## … … 108 113 - localhost:host-gateway 109 114 115 depends_on: 116 php: 117 condition: service_started 118 mysql: 119 condition: service_healthy 120 110 121 ## 111 122 # The Memcached container. … … 120 131 - 11211:11211 121 132 133 depends_on: 134 php: 135 condition: service_started 136 122 137 volumes: 123 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.