Changeset 45783 for trunk/tools/local-env/docker-compose.yml
- Timestamp:
- 08/12/2019 08:28:33 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 14 14 jsdoc 15 15 vendor 16 docker-compose.override.yml
-
- Property svn:ignore
-
trunk/tools/local-env/docker-compose.yml
r45762 r45783 19 19 20 20 volumes: 21 - ./ default.template:/etc/nginx/conf.d/default.template22 - . ./../:/var/www21 - ./tools/local-env/default.template:/etc/nginx/conf.d/default.template 22 - ./:/var/www 23 23 24 24 # Load our config file, substituning environment variables into the config. … … 42 42 43 43 volumes: 44 - ./ php-config.ini:/usr/local/etc/php/conf.d/php-config.ini45 - . ./../:/var/www44 - ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini 45 - ./:/var/www 46 46 47 47 depends_on: … … 61 61 62 62 volumes: 63 - ./ mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql63 - ./tools/local-env/mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql 64 64 - mysql:/var/lib/mysql 65 65 … … 67 67 command: --default-authentication-plugin=mysql_native_password 68 68 69 ## 70 # The WP CLI container. 71 ## 72 cli: 73 image: wordpressdevelop/cli:${LOCAL_PHP-latest} 74 75 networks: 76 - wpdevnet 77 78 environment: 79 LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false} 80 LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false} 81 82 volumes: 83 - ./:/var/www 84 85 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 86 init: true 87 88 ## 89 # The PHPUnit container. 90 ## 91 phpunit: 92 image: wordpressdevelop/phpunit:${LOCAL_PHP-latest} 93 94 networks: 95 - wpdevnet 96 97 environment: 98 LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false} 99 LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false} 100 101 volumes: 102 - ./tools/local-env/phpunit-config.ini:/usr/local/etc/php/conf.d/phpunit-config.ini 103 - ./:/wordpress-develop 104 - phpunit-uploads:/wordpress-develop/${LOCAL_DIR-src}/wp-content/uploads 105 106 # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. 107 init: true 108 109 depends_on: 110 - mysql 111 69 112 volumes: 70 113 # So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume. 71 114 mysql: {} 115 # Using a volume for the uploads directory improves PHPUnit performance. 116 phpunit-uploads: {} 72 117 73 118 networks:
Note: See TracChangeset
for help on using the changeset viewer.