user = "maurict" [service] name = "nc-test-api" image = "numberchords-api" network = "nc-network" depend = ["nc-test-database"] restart = "unless-stopped" detach = true hostname = "nc-test-api-hn" [service.healthcheck] cmd = "pg_isready --dbname=$DB_DATABASE_NAME --username=$DB_USERNAME || exit 1" interval = "5s" start_period = "30s" retries = 3 on_failure = "none" [environment] ASPNETCORE_ENVIRONMENT = "Test" "NC_Security__OtherIssuerKeys__identity.numberchords.com__AuthPublicKey" = "" [[secrets]] key = "connection_string" target = "Database__ConnectionString" [[secrets]] key = "api_secret_key" [[ports]] host = 80 container = 8080 protocol = "tcp" [[ports]] host = 22 container = 2222 [[volumes]] volume = "test" path = "/data/test" [[mounts]] typ = "bind" source = "/etc/hosts" target = "/etc/hosts" read_only = true