Files
Turbine/launchpad.toml
2025-12-13 14:37:29 +08:00

62 lines
1.6 KiB
TOML

# launchpad.toml
# An array of services that the launchpad can manage.
[[services]]
name = "gateway"
type = "go"
# Path to the service's source code, relative to the project root.
path = "./pkg/gateway"
# --- Development Configuration ---
# Used by the 'launchpad dev' command.
[services.dev]
# Command to run the service from source.
command = "go run ./main.go"
# --- Production Configuration ---
# Used by the 'launchpad prod-gen' command to generate docker-compose.yml.
[services.prod]
dockerfile = "./pkg/gateway/Dockerfile"
image = "turbine/gateway:latest"
ports = ["8080:8080"]
depends_on = ["etcd"]
[[services]]
name = "config"
type = "go"
path = "./pkg/config"
[services.dev]
command = "go run ./main.go"
[services.prod]
dockerfile = "./pkg/config/Dockerfile"
image = "turbine/config:latest"
depends_on = ["etcd"]
[[services]]
name = "orders-api"
type = "dotnet"
# IMPORTANT: This path should be updated to point to the actual location of the .NET project.
path = "../turbine-dotnet-services/orders-api"
[services.dev]
# Example of running from source:
command = "dotnet watch run"
# Example of running a pre-built development image (uncomment to use):
# image = "my-dev-registry/orders-api:dev-latest"
[services.prod]
# Path to the Dockerfile for the .NET service.
dockerfile = "../turbine-dotnet-services/orders-api/Dockerfile"
image = "turbine/orders-api:latest"
depends_on = ["etcd", "config"]
# Environment variables to be set in docker-compose.
environment = [
"ASPNETCORE_ENVIRONMENT=Production",
# The URL for the config service, accessible via the docker network.
"CONFIG_URL=http://config"
]