Windows containers and Docker Compose
In the final section of this chapter, we are going to look at using Docker Compose with our Windows Docker host. As you will have already guessed, there isn’t much change from the commands we ran in Chapter 5, Docker Compose.
In the chapter07
folder in the repository, you will find a docker-compose.yml
file that looks like the following:
version: ‘2.1’ services: db: image: microsoft/mssql-server-windows-express environment: sa_password: “${SA_PASSWORD}” ACCEPT_EULA: “${SQL_SERVER_ACCEPT_EULA}” healthcheck: test: [ “CMD”, “sqlcmd”, “-U”, “sa”, “-P”, “${SA_PASSWORD}”, “-Q”, “select 1” ] ...