-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (46 loc) · 1.18 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
frontend:
container_name: frontend
# build with the Dockerfile in this directory
build:
context: ./frontend
args:
- NODE_ENV=$NODE_ENV
ports:
- "5173:5173"
# when a file changes, sync it to the container
develop:
watch:
- action: sync
path: .
target: /app
# Azure SQL Server from Dockerfile
azure-sql-edge:
# image: mcr.microsoft.com/azure-sql-edge:latest
container_name: azure-sql-edge
networks:
- azure-sql-edge
ports:
- "${MSSQL_SERVER_PORT}:${MSSQL_SERVER_PORT}"
restart: always
# build the image
build:
context: ./database/azure-sql-edge
args:
- ACCEPT_EULA=$ACCEPT_EULA
- MSSQL_USER=$MSSQL_USER
- MSSQL_SA_PASSWORD=$MSSQL_SA_PASSWORD
- MSSQL_PID=$MSSQL_PID
- MSSQL_DATABASE=$MSSQL_DATABASE
- MSSQL_SERVER_HOST=$MSSQL_SERVER_HOST
- MSSQL_SERVER_PORT=$MSSQL_SERVER_PORT
# when a file changes, sync it to the container
develop:
watch:
- action: sync
path: .
target: /app
# Azure SQL Server network
networks:
azure-sql-edge:
driver: bridge