Changeset 58643 for branches/4.2/docker-compose.yml
- Timestamp:
- 07/03/2024 03:33:59 PM (5 months ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
- Property svn:mergeinfo changed
/trunk merged: 51673,53552,56464,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/4.2/docker-compose.yml
r55534 r58643 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 ## … … 38 39 39 40 environment: 40 LOCAL_PHP_XDEBUG:${LOCAL_PHP_XDEBUG-false}41 LOCAL_PHP_MEMCACHED:${LOCAL_PHP_MEMCACHED-false}42 PHP_FPM_UID:${PHP_FPM_UID-1000}43 PHP_FPM_GID:${PHP_FPM_GID-1000}41 - LOCAL_PHP_XDEBUG+${LOCAL_PHP_XDEBUG-false} 42 - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false} 43 - PHP_FPM_UID=${PHP_FPM_UID-1000} 44 - PHP_FPM_GID=${PHP_FPM_GID-1000} 44 45 45 46 volumes: … … 47 48 - ./:/var/www 48 49 49 depends_on:50 - mysql50 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 51 init: true 51 52 52 53 ## … … 54 55 ## 55 56 mysql: 56 image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.6} 57 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.6} 58 platform: linux/amd64 57 59 58 60 networks: … … 72 74 command: --default-authentication-plugin=mysql_native_password 73 75 76 healthcheck: 77 test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ] 78 timeout: 5s 79 interval: 5s 80 retries: 10 81 74 82 ## 75 83 # The WP CLI container. … … 82 90 83 91 environment: 84 LOCAL_PHP_XDEBUG:${LOCAL_PHP_XDEBUG-false}85 LOCAL_PHP_MEMCACHED:${LOCAL_PHP_MEMCACHED-false}86 PHP_FPM_UID:${PHP_FPM_UID-1000}87 PHP_FPM_GID:${PHP_FPM_GID-1000}92 - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false} 93 - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false} 94 - PHP_FPM_UID=${PHP_FPM_UID-1000} 95 - PHP_FPM_GID=${PHP_FPM_GID-1000} 88 96 89 97 volumes: … … 92 100 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 93 101 init: true 102 103 depends_on: 104 php: 105 condition: service_started 106 mysql: 107 condition: service_healthy 94 108 95 109 ## … … 103 117 104 118 environment: 105 LOCAL_PHP_XDEBUG:${LOCAL_PHP_XDEBUG-false}106 LOCAL_PHP_MEMCACHED:${LOCAL_PHP_MEMCACHED-false}107 LOCAL_DIR:${LOCAL_DIR-src}108 WP_MULTISITE:${WP_MULTISITE-false}109 PHP_FPM_UID:${PHP_FPM_UID-1000}110 PHP_FPM_GID:${PHP_FPM_GID-1000}111 TRAVIS_BRANCH:${TRAVIS_BRANCH-false}112 TRAVIS_PULL_REQUEST:${TRAVIS_PULL_REQUEST-false}113 GITHUB_REF:${GITHUB_REF-false}114 GITHUB_EVENT_NAME:${GITHUB_EVENT_NAME-false}119 - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false} 120 - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false} 121 - LOCAL_DIR=${LOCAL_DIR-src} 122 - WP_MULTISITE=${WP_MULTISITE-false} 123 - PHP_FPM_UID=${PHP_FPM_UID-1000} 124 - PHP_FPM_GID=${PHP_FPM_GID-1000} 125 - TRAVIS_BRANCH=${TRAVIS_BRANCH-false} 126 - TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST-false} 127 - GITHUB_REF=${GITHUB_REF-false} 128 - GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false} 115 129 116 130 volumes:
Note: See TracChangeset
for help on using the changeset viewer.