R
Railway17mo ago
root

Setting a start command for a Docker service

I'm trying to set up SurrealDB, which requires using surreal start <database path> as a start command. The problem is, it's now stuck in "Deploying". Project ID: ab2b3cb5-9d04-4621-80ad-fd4850d3850d
14 Replies
Percy
Percy17mo ago
Project ID: ab2b3cb5-9d04-4621-80ad-fd4850d3850d
root
rootOP17mo ago
Ah, lovely:
/router.Router/StartDeployment UNKNOWN: Error response from daemon: No such container: 42ec9cba7cdb9e389977bd210d20df8e634612de118df373a3798f0a020393b1

/router.Router/StartDeployment UNKNOWN: Error response from daemon: No such container: 42ec9cba7cdb9e389977bd210d20df8e634612de118df373a3798f0a020393b1

Brody
Brody17mo ago
more info please, are you building from a dockerfile, a docker image?
root
rootOP17mo ago
docker image
Brody
Brody17mo ago
and you've set the start command in the service settings?
root
rootOP17mo ago
yep
Brody
Brody17mo ago
whats the full start command that youve set?
root
rootOP17mo ago
surreal start file:/data/surreal.db just like the Surreal docs say
Brody
Brody17mo ago
Welp all looks good to me ping the applicable person
root
rootOP17mo ago
I think that's @jr ?
jr
jr17mo ago
Thats an error we get if the start command is invalid for that docker image (working on improving the error this week) A Dockerfile I have working for Surreal is
FROM surrealdb/surrealdb:latest
EXPOSE 8080
CMD ["start", "--log", "trace", "--bind", "0.0.0.0:8080", "--user", "root", "--pass", "root", "file://data/srdb.db"]
FROM surrealdb/surrealdb:latest
EXPOSE 8080
CMD ["start", "--log", "trace", "--bind", "0.0.0.0:8080", "--user", "root", "--pass", "root", "file://data/srdb.db"]
Aurnik
Aurnik13mo ago
Would the endpoint for this be https://domain.app:8080 ? Using this dockerfile my surrealdb server still seems to be served on a different port
Brody
Brody13mo ago
you can only access railway services over https on port 443
Aurnik
Aurnik13mo ago
Ah much appreciated, cheers
Want results from more Discord servers?
Add your server