Skip to content

Commit

Permalink
Add in microsoft sql server (mssql)
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jul 10, 2024
1 parent be73d95 commit e9941e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ POSTGRES_USER=my-user POSTGRES_PASSWORD=my-password ./run.sh postgres
| Database | elasticsearch ||
| Database | mariadb ||
| Database | mongodb ||
| Database | mssql ||
| Database | mysql ||
| Database | neo4j ||
| Database | postgres ||
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,22 @@
- "27017:27017"
"volumes":
- "./data/mongodb/persist:/data/db"
"mssql":
"container_name": "mssql"
"environment":
- "SA_PASSWORD=${MSSQL_PASSWORD:-yourStrong(!)Password}"
- "ACCEPT_EULA=Y"
"healthcheck":
"test": [ "CMD-SHELL", "mssql-health-check" ]
"timeout": "10s"
"interval": "10s"
"retries": 10
"image": "mcr.microsoft.com/mssql/server:${MSSQL_VERSION:-2022-latest}"
"ports":
- "1433:1433"
"volumes":
- "./data/mssql/mssql-health-check:/usr/local/bin/mssql-health-check"
# - "./data/mssql/persist:/var/opt/mssql/data"
"mysql":
"command": ["/bin/bash", "-c", "/tmp/scripts/init.sh"]
"container_name": "mysql-data"
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ flight-sql='flight_sql_client --command Execute --host localhost --port 31337 --
mariadb='mariadb --user=${MARIADB_USER:-user} --password=${MARIADB_PASSWORD:-password}'
mongodb-connect='mongosh mongodb://${MONGODB_USER:-root}:${MONGODB_PASSWORD:-root}@mongodb'
mysql='mysql -u ${MYSQL_USER:-root} -p${MYSQL_PASSWORD:-root}'
mssql='/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \"${MSSQL_PASSWORD:-yourStrong(!)Password}\"'
neo4j='cypher-shell -u neo4j -p test'
postgres='PGPASSWORD=${POSTGRES_PASSWORD:-postgres} psql -U${POSTGRES_USER:-postgres}'
prefect-data='bash'
Expand Down

0 comments on commit e9941e9

Please sign in to comment.