h246810
h246810
RRailway
Created by h246810 on 4/14/2024 in #✋|help
Is it possible to run docker compose as a railway service
I have a fairly straightforward app running via docker compose. Is there way to get this to run on a railway service? I will post the dockerfile below. I expect I would have to make some changes to use private networking if that is the case.
services:
frontend:
build:
context: ./frontend
ports:
- "80:80"
networks:
- osft-network
backend:
build:
context: ./backend
image: osft-backend
ports:
- "3000:3000"
depends_on:
- mongodb
- redis
networks:
- osft-network
mongodb:
image: "mongo:latest"
ports:
- "27017:27017"
networks:
- osft-network
volumes:
- db_data:/data/db
environment:
MONGO_INITDB_DATABASE: osft-local
redis:
image: "redis:latest"
ports:
- "6379:6379"
networks:
- osft-network

networks:
osft-network:
driver: bridge

volumes:
db_data:
driver: local
services:
frontend:
build:
context: ./frontend
ports:
- "80:80"
networks:
- osft-network
backend:
build:
context: ./backend
image: osft-backend
ports:
- "3000:3000"
depends_on:
- mongodb
- redis
networks:
- osft-network
mongodb:
image: "mongo:latest"
ports:
- "27017:27017"
networks:
- osft-network
volumes:
- db_data:/data/db
environment:
MONGO_INITDB_DATABASE: osft-local
redis:
image: "redis:latest"
ports:
- "6379:6379"
networks:
- osft-network

networks:
osft-network:
driver: bridge

volumes:
db_data:
driver: local
32 replies
RRailway
Created by h246810 on 4/6/2024 in #✋|help
Is there an official gui for viewing files stored in a railway volume
I'm looking for any kind of gui to view file names and even download files directly from the railway volume.
6 replies
RRailway
Created by h246810 on 3/29/2024 in #✋|help
Extend timeout when running railway logs in cli
When running
railway logs
railway logs
my connection will only stay open for a couple of minutes before disconnecting. Is it possible to extend this connection for a longer period of time, say 20 minutes? it's soothing to have the logs running in the background (sometimes)
8 replies
RRailway
Created by h246810 on 11/9/2023 in #✋|help
Is it possible to get commit hash sent via webhook
I am currently receiving webhook events from my railway deployment, and I was wondering if it is possible to make it so that my railway webhook sends me the commit hash associated with the current build/deployment?
41 replies
RRailway
Created by h246810 on 11/8/2023 in #✋|help
Question about Railway Webhooks JSON Output
So I have a REST API that receives webhook payloads from a railway server. My question is, what is the keyword that's used for the status field when the deployment fails? Right now status is SUCCESS Here is some example output with important stuff commented out
{

type: 'DEPLOY',

project: {

id: '',

name: '',

description: null,

createdAt: '2023-10-19T23:13:04.387Z'

},

deployment: {

id: '',

meta: {

logsV2: true,

buildOnly: false,

configFile: null,

volumeMounts: [],

rootDirectory: null,

serviceManifest: [Object],

nixpacksProviders: [Array],

fileServiceManifest: {},

ignoreWatchPatterns: true,

propertyFileMapping: {}

},

creator: {

id: '',

name: '',

avatar: '';

}

},

environment: { id: '' },

status: 'SUCCESS',

timestamp: '2023-11-08T20:51:26.806Z',

service: { id: '', name: '' }

}
{

type: 'DEPLOY',

project: {

id: '',

name: '',

description: null,

createdAt: '2023-10-19T23:13:04.387Z'

},

deployment: {

id: '',

meta: {

logsV2: true,

buildOnly: false,

configFile: null,

volumeMounts: [],

rootDirectory: null,

serviceManifest: [Object],

nixpacksProviders: [Array],

fileServiceManifest: {},

ignoreWatchPatterns: true,

propertyFileMapping: {}

},

creator: {

id: '',

name: '',

avatar: '';

}

},

environment: { id: '' },

status: 'SUCCESS',

timestamp: '2023-11-08T20:51:26.806Z',

service: { id: '', name: '' }

}
4 replies
RRailway
Created by h246810 on 11/7/2023 in #✋|help
Running Railway Up from CLI
Does anybody know if the railway up command waits until the service has been successfully built and deployed to railway before returning with a success status? I am using it in this CI workflow, and it seems that railway up returns much quicker than the actual build and deploy times being showed on railway.app Here is a snippet of the CI
- name: Deploy
run: RAILWAY_TOKEN=$RAILWAY_TOKEN railway up --service backend
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

- name: Populate Database with Fake-Data
run: |
npm run test:tearDownDB
npm run test:setupDB
env:
NODE_ENV: prod
- name: Deploy
run: RAILWAY_TOKEN=$RAILWAY_TOKEN railway up --service backend
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

- name: Populate Database with Fake-Data
run: |
npm run test:tearDownDB
npm run test:setupDB
env:
NODE_ENV: prod
54 replies
RRailway
Created by h246810 on 11/6/2023 in #✋|help
TIps for running Railway CLI where user input/action is unavailable
I am trying to deploy an application to railway in a github workflows file, but every time I try to run the following commands
railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production
railway up --service backend
railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production
railway up --service backend
I get the following error : Failed to prompt for select Caused by: The input device is not a TTY Does anybody know if it is possible to execute these commands from a worfklow where user input/interaction is disabled
7 replies
RRailway
Created by h246810 on 10/2/2023 in #✋|help
Railway Deployments Down
Hi there, is anybody else experiencing outages with their deployments currently? I have two applications currently hosted on Railway (both were working perfectly fine yesterday), and both are currently down atm. I am unable to see any live feedback via the logs.
31 replies