-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 957 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
37
38
39
40
services:
mssql:
image: mcr.microsoft.com/azure-sql-edge:latest
platform: linux/amd64
container_name: mssql
ports:
- "1433:1433"
environment:
SA_PASSWORD: "YourStrong!Passw0rd"
ACCEPT_EULA: "Y"
volumes:
- sqlserver_data:/var/opt/mssql
sqlcmd:
image: mcr.microsoft.com/mssql-tools:latest
platform: linux/amd64
container_name: sqlcmd
stdin_open: true
depends_on:
- mssql
environment:
SA_PASSWORD: "YourStrong!Passw0rd"
volumes:
- ./CineStream.Db/init-db.sql:/opt/mssql/init/init-db.sql
command: /bin/bash -c 'sleep 30 && /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P $$SA_PASSWORD -i /opt/mssql/init/init-db.sql; sleep 10'
cinestream:
platform: linux/arm64
container_name: cinestream
build:
context: .
dockerfile: Dockerfile
depends_on:
- mssql
- sqlcmd
ports:
- "5050:5050"
volumes:
sqlserver_data: