Skip to content

Instantly share code, notes, and snippets.

@andrewmatveychuk
Created June 25, 2025 14:59
Show Gist options
  • Select an option

  • Save andrewmatveychuk/0dc142bb885c6acb03eb266d1d4e8589 to your computer and use it in GitHub Desktop.

Select an option

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
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