forked from Hedgemon4/cosc304-only-ducks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 919 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.7'
services:
node:
build:
context: ./
dockerfile: Dockerfile
image: node-app
depends_on:
- db
container_name: node-app
volumes:
- ./:/app/
- /app/node_modules
networks:
node-network:
aliases:
- node-app
ports:
- 80:3000
db:
image: mcr.microsoft.com/mssql/server:2019-latest
container_name: mssql
restart: always
environment:
ACCEPT_EULA: 'Y'
SA_PASSWORD: 'YourStrong@Passw0rd'
ports:
- '1433:1433'
expose:
- '1433'
volumes:
- cosc304-db:/var/lib/mssql
networks:
node-network:
aliases:
- cosc304-db
volumes:
cosc304-db:
networks:
node-network: