Created
June 25, 2025 14:59
-
-
Save andrewmatveychuk/0dc142bb885c6acb03eb266d1d4e8589 to your computer and use it in GitHub Desktop.
A sample container resource to run WordPress as a container on the Radius platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension radius | |
| extension radiusResources | |
| @description('The Radius Application ID. Injected automatically by the rad CLI.') | |
| param application string | |
| @description('The env ID of your Radius Environment. Set automatically by the rad CLI.') | |
| param environment string | |
| @description('Tag to pull for the WordPress container image.') | |
| param tag string = 'latest' | |
| var port int = 80 | |
| resource frontend 'Applications.Core/containers@2023-10-01-preview' = { | |
| name: 'wordpress' | |
| properties: { | |
| application: application | |
| environment: environment | |
| container: { | |
| image: 'wordpress:${tag}' | |
| ports: { | |
| web: { | |
| containerPort: port | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment