MS SQL Server 2017

MS SQL Server 2017

Easily deploy an MSSQL Server 2017 instance with pre-configured settings

Deploy MS SQL Server 2017

MS SQL Server 2017

mssql/server:2017-latest

Just deployed

/var/opt/mssql

MSSQL Server 2017

This template sets up an MSSQL Server 2017 container on Railway, pre-configured with essential environment variables and a secure autogenerated password for the SA user. Follow the instructions below to connect to the database using SQL Server Management Studio (SSMS).

Features

  • Preconfigured Environment Variables:
    • ACCEPT_EULA="Y": Accept the MSSQL Server End User License Agreement.
    • MSSQL_SA_PASSWORD: Secure password autogenerated upon deployment.
    • MSSQL_DATA_DIR="/var/opt/mssql": Data storage directory.
  • MSSQL Server 2017, perfect for development or production use.
  • Accessible via SQL Server Management Studio or other SQL tools.

Deployment Instructions

  1. Fork or Deploy Template

    • Use this template to deploy an MSSQL Server 2017 container on Railway.
    • During deployment, provide a secure password for the SA user by setting the 'MSSQL_SA_PASSWORD' env variable
  2. Retrieve Connection Details

    • Go to your Railway project dashboard.
    • Note down the following environment variables:
      • TCP Proxy URL: You can see this from the settings tab of the service
      • Username: SA (system administrator).
      • Password: Autogenerated in the MSSQL_SA_PASSWORD variable.

Connecting via SQL Server Management Studio (SSMS)

  1. Open SQL Server Management Studio (SSMS).

  2. In the "Connect to Server" dialog box, enter the following details:

    • Server Type: Database Engine.
    • Server Name: Use the Railway-provided TCP Proxy URL (e.g., autorack.proxy.rlwy.net,43433). NOTE: use ',' and not ':' to separate the url from the port
    • Authentication: SQL Server Authentication.
    • Login: SA.
    • Password: Use the value from MSSQL_SA_PASSWORD in Railway environment settings.
  3. Click "Connect" to access your MSSQL instance.


Additional Notes

  • The MSSQL_DATA_DIR specifies the storage location for your database files. Customize it if needed.
  • Ensure your Railway service exposes port 1433 to allow external connections.
  • Secure your deployment by restricting access and rotating passwords regularly.

Enjoy using MSSQL Server 2017 on Railway! 🎉


Template Content

More templates in this category

New

ReadySet

ReadySet

A lightweight caching engine for Postgres


0

New

Flare

Flare

A modern, lightning-fast file sharing platform built for self-hosting


0

New

EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


0