user3249123423
user3249123423
RRailway
Created by user3249123423 on 3/29/2024 in #✋|help
🔧 Need Help with Private Networking Between NestJS and Flask on Railway 🔧
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "gunicorn -b '[::]:'$PORT main:app",

"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "gunicorn -b '[::]:'$PORT main:app",

"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
6 replies
RRailway
Created by user3249123423 on 3/29/2024 in #✋|help
🔧 Need Help with Private Networking Between NestJS and Flask on Railway 🔧
Fixed it by adding this railway.json gunicorn config
6 replies
RRailway
Created by user3249123423 on 3/29/2024 in #✋|help
🔧 Need Help with Private Networking Between NestJS and Flask on Railway 🔧
N/A
6 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
BTCPay Server on Railway
Thanks for helping and saving me time, guess i keep it hosted somewhere else.
15 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
BTCPay Server on Railway
I'm inexperienced with Docker but i managed to create Dockerfile # Use a base image with necessary dependencies FROM ubuntu:latest # Install required packages and dependencies RUN apt-get update && apt-get install -y git \ docker \ docker-compose \ && rm -rf /var/lib/apt/lists/* # Set the timezone environment variable ENV TZ=Europe/Berlin # Create a folder for BTCPay WORKDIR /BTCPayServer # Clone BTCPay Server repository RUN git clone https://github.com/btcpayserver/btcpayserver-docker /btcpayserver-docker # Set environment variables with default values ARG BTCPAY_HOST="btcpay.EXAMPLE.com" ARG NBITCOIN_NETWORK="mainnet" ARG BTCPAYGEN_CRYPTO1="btc" ARG BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-s" ARG BTCPAYGEN_REVERSEPROXY="nginx" ARG BTCPAYGEN_LIGHTNING="clightning" ARG BTCPAY_ENABLE_SSH=true ENV BTCPAY_HOST=${BTCPAY_HOST} \ NBITCOIN_NETWORK=${NBITCOIN_NETWORK} \ BTCPAYGEN_CRYPTO1=${BTCPAYGEN_CRYPTO1} \ BTCPAYGEN_ADDITIONAL_FRAGMENTS=${BTCPAYGEN_ADDITIONAL_FRAGMENTS} \ BTCPAYGEN_REVERSEPROXY=${BTCPAYGEN_REVERSEPROXY} \ BTCPAYGEN_LIGHTNING=${BTCPAYGEN_LIGHTNING} \ BTCPAY_ENABLE_SSH=${BTCPAY_ENABLE_SSH} # Set the shell to bash SHELL ["/bin/bash", "-c"] # Run setup script using source command RUN source /btcpayserver-docker/btcpay-setup.sh -i # Expose necessary ports EXPOSE 80 443 # Start BTCPay Server ENTRYPOINT ["/bin/bash", "-c", "/btcpayserver-docker/btcpay-up.sh"] The Build runs fine but the Deploy fails. Deploy Logs: /btcpayserver-docker/btcpay-up.sh: line 12: /etc/profile.d/btcpay-env.sh: No such file or directory Define and run multi-container applications with Docker. Usage: docker-compose [-f <arg>...] [--profile <name>...] [options] [--] [COMMAND] [ARGS...] docker-compose -h|--help Options: -f, --file FILE Specify an alternate compose file (default: docker-compose.yml) -p, --project-name NAME Specify an alternate project name
15 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
BTCPay Server on Railway
BTCPay Sever requires you to configure Environment variables before running a Shell script which will then start the Docker container. Here is some Documentation:
The setup below assumes you want to support Bitcoin, Core Lightning (CLN), HTTPS automatically configured by Nginx. It also enables node pruning, which you can modify or ignore if you have enough disk space for a full node. Finally, your domain is btcpay.EXAMPLE.com should reflect your actual domain name. Environment variables can be tailored to your needs. Some variables require additional storage space. Login as root sudo su - Create a folder for BTCPay mkdir BTCPayServer cd BTCPayServer Clone this repository git clone https://github.com/btcpayserver/btcpayserver-docker cd btcpayserver-docker Run btcpay-setup.sh with the right parameters export BTCPAY_HOST="btcpay.EXAMPLE.com" export NBITCOIN_NETWORK="mainnet" export BTCPAYGEN_CRYPTO1="btc" export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-s" export BTCPAYGEN_REVERSEPROXY="nginx" export BTCPAYGEN_LIGHTNING="clightning" export BTCPAY_ENABLE_SSH=true . ./btcpay-setup.sh -i exit btcpay-setup.sh will then: Install Docker Install Docker-Compose Make sure BTCPay starts at reboot via upstart or systemd Setup environment variables to use BTCPay utilities Add BTCPay utilities in /usr/bin Start BTCPay Server
15 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
BTCPay Server on Railway
bab24910-5c0c-4a08-a379-3565325f4ca9
15 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
(NestJS) Health Check Failed
Resolved, sorry for this stupid Post 🫣🤦‍♂️😂
10 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
(NestJS) Health Check Failed
Failed migration, that doesn’t impact the Health Check? Thanks for helping
10 replies
RRailway
Created by user3249123423 on 12/29/2023 in #✋|help
(NestJS) Health Check Failed
938c3076-045c-45b4-9ab8-0ba7a836429d
10 replies