I have a working http app. It uses the http_service and TLS. I want to add another tcp service to the app.
This is what I came up with for the config:
[http_service]
processes = ['app']
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 1
[http_service.concurrency]
type = 'requests'
hard_limit = 1000
soft_limit = 750
[[http_service.checks]]
grace_period = "10s"
interval = "5s"
method = "GET"
timeout = "1s"
path = "/_healthcheck"
[[services]]
processes = ['app']
internal_port = 25
protocol = "tcp"
[[services.ports]]
port = 25
However, if I look at the network config for my app on the dashboard it does not show the port 25 service. We can see the dedicated v4 and v6 addresses, but the only service is the HTTP service:
This deploys without error and when I run fly config show it correctly displays both services:
"http_service": {
"internal_port": 8080,
"force_https": true,
"auto_stop_machines": true,
"auto_start_machines": true,
"min_machines_running": 1,
"processes": [
"app"
],
"concurrency": {
"type": "requests",
"hard_limit": 1000,
"soft_limit": 750
},
"checks": [
{
"interval": "5s",
"timeout": "1s",
"grace_period": "10s",
"method": "GET",
"path": "/_healthcheck"
}
]
},
"services": [
{
"protocol": "tcp",
"internal_port": 25,
"ports": [
{
"port": 25
}
],
"processes": [
"app"
]
}
],
