Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.79 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.79 KB

mssql-execute

Docker Pull Docker Stars

This docker image is made as a Job or Coinjob, and is easy to use. It is a small program that runs a SQL script on a mssql database.

Insert your envoriment arguments in either the Docker Command or Docker-compose, where -v "./execute.sql:/app/execute.sql" or

volumes:
    - './execute.sql:/app/execute.sql'

is the path to your SQL script.

Environment

Description Default
USERNAME Username to database
PASSWORD Password to database
SERVERURL Url or Ip address
PORT Port nummber to database 1443
DATABASE What database name?
DELAY Delay to execute SQL script (ms) 0

Docker command

docker run -v "./execute.sql:/app/execute.sql" -e USERNAME=SA -e PASSWORD=<YourStrong@Passw0rd> -e SERVERURL=localhost -e PORT=1433 -e DATABASE=master chri11g6/mssql-execute:v1

Docker-compose

version: '3'
services: 
    MsSQL-execute:
        image: chri11g6/mssql-execute:v1

        environment:
            USERNAME: SA
            PASSWORD: '<YourStrong@Passw0rd>'
            SERVERURL: 'localhost'
            PORT: 1433
            DATABASE: master

        volumes: 
           - './execute.sql:/app/execute.sql'

# Use this to connection to other network
networks:
    default:
        external: true
        name: host