-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
36 lines (34 loc) · 928 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.1'
services:
db:
image: kcollins/mssql:latest
pull_policy: always
ports:
- 1433:1433
volumes:
- db_data:/var/opt/mssql
- ./db-backups:/backups
- ./db-init:/docker-entrypoint-initdb.d
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
secrets:
- mssql-sa-password
- mssql-password
environment:
# ACCEPT_EULA confirms your acceptance of the End-User Licensing Agreement.
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD_FILE: /run/secrets/mssql-sa-password
MSSQL_DATABASE: test
MSSQL_USER: testuser
MSSQL_PASSWORD_FILE: /run/secrets/mssql-password
MSSQL_PID: Developer # Change to the edition you need, e.g. "Express", "Standard", etc.
secrets:
mssql-sa-password:
file: ./secrets/MSSQL_SA_PASSWORD
mssql-password:
file: ./secrets/MSSQL_PASSWORD
volumes:
db_data: