-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1009 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
version: "3.9"
services:
api:
build:
context: ./services/api
dockerfile: Dockerfile
volumes:
- "./services/api:/usr/src/app"
ports:
- 5000:5000
environment:
- DATABASE_CONNECTION_STRING=Server=db, 1433;Database=MotionPictureDbContext;User=sa;Password=Your_password123;
depends_on:
- db
db:
build:
context: ./services/api/db
image: "mcr.microsoft.com/mssql/server:2019-latest"
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Your_password123"
ACCEPT_EULA: "Y"
MSSQL_PID: "Express"
volumes:
- "/var/opt/mssql/backups"
- "/var/opt/sqlserver"
- "/var/opt/mssql"
client:
build:
context: ./services/client
dockerfile: Dockerfile
environment:
- CHOKIDAR_USEPOLLING=true # Enable vuejs hot reloading.
- MP_APIURL=http://localhost:5000
volumes:
- ./services/client:/usr/src/app
- /usr/src/app/node_modules
ports:
- '8080:8080'