Skip to content

SamEdwardsWEG/DockerDatabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sql Server 2017 instance running in Docker

How to use for first time

  1. Clone this repository to your machine.
  2. Open terminal and navigate to Docker Database folder
  3. Add a file called '.env'
  4. Inside the .env file add a line following the below convention
  5. SA_PASSWORD=YourSuperSecretPassword
  6. Run docker-compose up -d.
  7. If you get a pop up asking to share your folder then click "Share It".
  8. Amend connection strings to include Data Source=localhost, 1433, User Id=SA, Password=YourSuperSecretPassword.

When you've finished you can bring to container down if you wish with docker-compose down. This will keep all data so when you bring the container back up your databases will still be there with all your data.

Bringing the container back up

  1. Open terminal and navigate to Docker Database folder
  2. Run docker-compose up -d.
  3. Ammend connection strings to include Data Source=localhost, 1433, User Id=SA, Password=YourSuperSecretPassword.

About

Sql Server 2017 instance running in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published