| 1 |
{ |
| 2 |
"name": "WordPress Codespace", |
| 3 |
"image": "ghcr.io/automattic/vip-codespaces/alpine-base:latest", |
| 4 |
"overrideCommand": false, |
| 5 |
"forwardPorts": [80, 81, 8025], |
| 6 |
"portsAttributes": { |
| 7 |
"80": { |
| 8 |
"label": "Application", |
| 9 |
"onAutoForward": "notify", |
| 10 |
"elevateIfNeeded": true |
| 11 |
}, |
| 12 |
"81": { |
| 13 |
"label": "phpMyAdmin", |
| 14 |
"onAutoForward": "notify", |
| 15 |
"elevateIfNeeded": true |
| 16 |
}, |
| 17 |
"3306": { |
| 18 |
"label": "MySQL", |
| 19 |
"onAutoForward": "ignore" |
| 20 |
}, |
| 21 |
"9000": { |
| 22 |
"label": "php-fpm", |
| 23 |
"onAutoForward": "ignore" |
| 24 |
}, |
| 25 |
"9003": { |
| 26 |
"label": "Xdebug Client Port", |
| 27 |
"onAutoForward": "notify" |
| 28 |
} |
| 29 |
}, |
| 30 |
"features": { |
| 31 |
"ghcr.io/automattic/vip-codespaces/base:latest": {}, |
| 32 |
"ghcr.io/automattic/vip-codespaces/nginx:latest": {}, |
| 33 |
"ghcr.io/automattic/vip-codespaces/php:latest": { |
| 34 |
"version": "8.2", |
| 35 |
"composer": true |
| 36 |
}, |
| 37 |
"ghcr.io/automattic/vip-codespaces/mariadb:latest": { |
| 38 |
// Set to false to prevent the database content from persisting between rebuilds. |
| 39 |
"installDatabaseToWorkspaces": true |
| 40 |
}, |
| 41 |
"ghcr.io/automattic/vip-codespaces/wordpress:latest": { |
| 42 |
// WordPress version: Accepts 'latest', 'nightly', or a version number. |
| 43 |
"version": "latest", |
| 44 |
// Set to false to prevent wp-content/uploads content from persisting between rebuilds. |
| 45 |
"moveUploadsToWorkspaces": false, |
| 46 |
// Set to true to create the environment as a WordPress multisite. |
| 47 |
"multisite": false, |
| 48 |
// GitHub Codespaces only supports the subdirectory network type for multisite; subdomain cannot be used. |
| 49 |
"multisiteStyle": "subdirectory" |
| 50 |
}, |
| 51 |
"ghcr.io/automattic/vip-codespaces/wp-cli:latest": { |
| 52 |
// Set to true to enable nightly builds of WP-CLI. |
| 53 |
"nightly": false |
| 54 |
}, |
| 55 |
"ghcr.io/automattic/vip-codespaces/dev-tools:latest": {}, |
| 56 |
"ghcr.io/automattic/vip-codespaces/phpmyadmin:latest": { |
| 57 |
// Set to false to disable phpMyAdmin. |
| 58 |
"enabled": true |
| 59 |
}, |
| 60 |
"ghcr.io/automattic/vip-codespaces/xdebug:latest": { |
| 61 |
// Set to true to enable Xdebug. |
| 62 |
// This setting can also be updated with CLI commands in the terminal. |
| 63 |
"enabled": true, |
| 64 |
// Set Xdebug mode. Accepted value options are listed here: https://xdebug.org/docs/all_settings#mode |
| 65 |
"mode": "debug" |
| 66 |
}, |
| 67 |
"ghcr.io/automattic/vip-codespaces/ssh:latest": { |
| 68 |
// Set to true to enable an SSH server for the Codespaces environment. |
| 69 |
"enabled": true |
| 70 |
} |
| 71 |
}, |
| 72 |
"postCreateCommand": "bash ./.devcontainer/post-create.sh" |
| 73 |
} |