-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.52 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
54
55
56
57
58
59
60
61
62
63
64
version: '3.7'
services:
node:
build:
context: ./
dockerfile: Dockerfile
image: node-app
environment:
DB_SERVER: cosc304-db
DB_NAME: tempdb
DB_USER: SA
DB_PASSWORD: 'YourStrong@Passw0rd'
REDIS_URL: redis://redis-store:6379
SESSION_SECRET: 'ChaiM8M8'
NODE_ENV: dev
depends_on:
- db
- redis
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/opt/mssql
networks:
node-network:
aliases:
- cosc304-db
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- '6379:6379'
expose:
- '6379'
volumes:
- redis-data:/data
networks:
node-network:
aliases:
- redis-store
volumes:
cosc304-db: null
redis-data: null
networks:
node-network: null