{
    "name": "WordPress Codespace",
    "image": "ghcr.io/automattic/vip-codespaces/alpine-base:latest",
    "overrideCommand": false,
    "forwardPorts": [80, 81, 8025],
    "portsAttributes": {
        "80": {
            "label": "Application",
            "onAutoForward": "notify",
            "elevateIfNeeded": true
        },
        "81": {
            "label": "phpMyAdmin",
            "onAutoForward": "notify",
            "elevateIfNeeded": true
        },
        "3306": {
            "label": "MySQL",
            "onAutoForward": "ignore"
        },
        "9000": {
            "label": "php-fpm",
            "onAutoForward": "ignore"
        },
        "9003": {
            "label": "Xdebug Client Port",
            "onAutoForward": "notify"
        }
    },
    "features": {
        "ghcr.io/automattic/vip-codespaces/base:latest": {},
        "ghcr.io/automattic/vip-codespaces/nginx:latest": {},
        "ghcr.io/automattic/vip-codespaces/php:latest": {
            "version": "8.2",
            "composer": true
        },
        "ghcr.io/automattic/vip-codespaces/mariadb:latest": {
            // Set to false to prevent the database content from persisting between rebuilds.
            "installDatabaseToWorkspaces": true
        },
        "ghcr.io/automattic/vip-codespaces/wordpress:latest": {
            // WordPress version: Accepts 'latest', 'nightly', or a version number.
            "version": "latest",
            // Set to false to prevent wp-content/uploads content from persisting between rebuilds.
            "moveUploadsToWorkspaces": false,
            // Set to true to create the environment as a WordPress multisite.
            "multisite": false,
            // GitHub Codespaces only supports the subdirectory network type for multisite; subdomain cannot be used.
            "multisiteStyle": "subdirectory"
        },
        "ghcr.io/automattic/vip-codespaces/wp-cli:latest": {
            // Set to true to enable nightly builds of WP-CLI.
            "nightly": false
        },
        "ghcr.io/automattic/vip-codespaces/dev-tools:latest": {},
        "ghcr.io/automattic/vip-codespaces/phpmyadmin:latest": {
            // Set to false to disable phpMyAdmin.
            "enabled": true
        },
        "ghcr.io/automattic/vip-codespaces/xdebug:latest": {
            // Set to true to enable Xdebug.
            // This setting can also be updated with CLI commands in the terminal.
            "enabled": true,
            // Set Xdebug mode. Accepted value options are listed here: https://xdebug.org/docs/all_settings#mode
            "mode": "debug"
        },
        "ghcr.io/automattic/vip-codespaces/ssh:latest": {
            // Set to true to enable an SSH server for the Codespaces environment.
            "enabled": true
        }
    },
    "postCreateCommand": "bash ./.devcontainer/post-create.sh"
}