diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..2b0cc65 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "cmbabaseball/data/plugins/tonys-sportspress-enhancements"] + path = cmbabaseball/data/plugins/tonys-sportspress-enhancements + url = https://gitea.ascorrea.com/asc/tonys-sportspress-enhancements.git +[submodule "cmbabaseball/data/plugins/cimba"] + path = cmbabaseball/data/plugins/cimba + url = https://gitea.ascorrea.com/asc/cimba.git diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c0ea274 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,51 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003, + "pathMappings": { + "/var/www/html/wp-content/plugins/": "${workspaceFolder}/src/plugins" + } + }, + { + "name": "Launch currently open script", + "type": "php", + "request": "launch", + "program": "${file}", + "cwd": "${fileDirname}", + "port": 0, + "runtimeArgs": [ + "-dxdebug.start_with_request=yes" + ], + "env": { + "XDEBUG_MODE": "debug,develop", + "XDEBUG_CONFIG": "client_port=${port}" + } + }, + { + "name": "Launch Built-in web server", + "type": "php", + "request": "launch", + "runtimeArgs": [ + "-dxdebug.mode=debug", + "-dxdebug.start_with_request=yes", + "-S", + "localhost:0" + ], + "program": "", + "cwd": "${workspaceRoot}", + "port": 9003, + "serverReadyAction": { + "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started", + "uriFormat": "http://localhost:%s", + "action": "openExternally" + } + } + ] +} \ No newline at end of file diff --git a/cmbabaseball/data/plugins/cimba b/cmbabaseball/data/plugins/cimba new file mode 160000 index 0000000..b1ed7ee --- /dev/null +++ b/cmbabaseball/data/plugins/cimba @@ -0,0 +1 @@ +Subproject commit b1ed7ee6c9aaa32ff2053cf19ae9c665e803ab0d diff --git a/cmbabaseball/data/plugins/tonys-sportspress-enhancements b/cmbabaseball/data/plugins/tonys-sportspress-enhancements new file mode 160000 index 0000000..59bb020 --- /dev/null +++ b/cmbabaseball/data/plugins/tonys-sportspress-enhancements @@ -0,0 +1 @@ +Subproject commit 59bb020f3b0e85f6f03d4c87808106c21ce7124d diff --git a/compose-development.yml b/compose-development.yml new file mode 100644 index 0000000..3d95034 --- /dev/null +++ b/compose-development.yml @@ -0,0 +1,92 @@ +name: ${PROJECT_NAME} +services: + wordpress-chihounds: + container_name: chihounds + depends_on: + - database + image: wordpress:fpm + env_file: + - .env + - chihounds/.env + environment: + XDEBUG_MODE: debug + XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003 + XDEBUG_SESSION: 1 + WORDPRESS_DEBUG: 1 + WORDPRESS_CONFIG_EXTRA: | + define( 'WP_DEBUG_DISPLAY', true ); + define( 'WP_DEBUG_LOG', true ); + volumes: + - chihounds-wpdata:/var/www/html + - ./shared/php.ini:/usr/local/etc/php/conf.d/wordpress.ini + networks: + - network + wordpress-cmbabaseball: + container_name: cmbabaseball + depends_on: + - database + build: + context: ./cmbabaseball + dockerfile: ../shared/Dockerfile-development + env_file: + - .env + - cmbabaseball/.env + environment: + XDEBUG_MODE: debug + XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003 + XDEBUG_SESSION: 1 + WORDPRESS_DEBUG: 1 + WORDPRESS_CONFIG_EXTRA: | + define( 'WP_DEBUG_DISPLAY', true ); + define( 'WP_DEBUG_LOG', true ); + volumes: + - cmbabaseball-wpdata:/var/www/html + - ./cmbabaseball/data/plugins/cimba:/var/www/html/wp-content/plugins/cimba + - ./cmbabaseball/data/plugins/debug-trace:/var/www/html/wp-content/plugins/debug-trace + - ./cmbabaseball/data/plugins/tonys-sportspress-enhancements:/var/www/html/wp-content/plugins/tonys-sportspress-enhancements + - ./shared/php.ini:/usr/local/etc/php/conf.d/wordpress.ini + networks: + - network + database: + container_name: database + hostname: ${WORDPRESS_DB_HOST} + image: mariadb + env_file: + - .env + volumes: + - db-data:/var/lib/mysql + networks: + - network + phpmyadmin: + container_name: phpmyadmin + image: phpmyadmin + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + UPLOAD_LIMIT: 128M + ports: + - "8080:80" + networks: + - network + caddy: + image: caddy:alpine + container_name: webserver + ports: + - 80:80 + - 443:443 + volumes: + - caddy-data:/data + - caddy-config:/config + - ./caddy/Caddyfile:/etc/caddy/Caddyfile + - chihounds-wpdata:/var/www/chihounds + - cmbabaseball-wpdata:/var/www/cmbabaseball + networks: + - network + +volumes: + db-data: + chihounds-wpdata: + cmbabaseball-wpdata: + caddy-data: + caddy-config: +networks: + network: \ No newline at end of file diff --git a/shared/Dockerfile-development b/shared/Dockerfile-development new file mode 100644 index 0000000..b85260c --- /dev/null +++ b/shared/Dockerfile-development @@ -0,0 +1,4 @@ +FROM wordpress:fpm + +RUN pecl install xdebug +RUN docker-php-ext-enable xdebug \ No newline at end of file