Dotnet (opens new window) is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library named Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages.
# Supported versions
# Unsupported versions
Due to upstream changes these no longer work.
- 2 (opens new window)
- 2.0 (opens new window)
- 1 (opens new window)
- 1.1 (opens new window)
- 1.0 (opens new window)
# Patch versions
Here are the configuration options, set to the default values, for this service. If you are unsure about where this goes or what this means, we highly recommend scanning the services documentation to get a good handle on how the magicks work.
services: myservice: type: dotnet:2.0 ssl: false command: tail -f /dev/null port: 80
# Specifying a command
Note that if you do not define a
command for this service, it will effectively be a "cli" container (e.g. it will not serve or run an application by default but will be available to run
dotnet commands against).
If you want to actually launch a
dotnet application, consider setting the
command to something as shown below:
services: myservice: type: dotnet command: dotnet run
# Using SSL
Also note that
ssl: true will only generate certs in the default locations and expose port
443. It is up to the user to use the certs and secure port correctly in their application like as in this article (opens new window).
# Setting a port
While we assume your
dotnet service is running on port
80, we recognize that many
dotnet apps also run on port
8888 or otherwise. You can easily change our default to match whatever your app needs.
services: myservice: type: dotnet port: 8888