-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.31 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
version: '3.8'
networks:
lab-network:
name: lab-network
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24
gateway: 172.20.0.1
services:
redis:
container_name: signalr-redis
image: redis:latest
command: redis-server
restart: always
ports:
- "6379:6379"
networks:
lab-network:
ipv4_address: 172.20.0.2
sqlserver:
container_name: signalr-sqlserver
image: mcr.microsoft.com/mssql/server:2019-latest
restart: always
ports:
- "1433:1433"
environment:
SA_PASSWORD: "S3cur3P@ssW0rd!"
ACCEPT_EULA: "Y"
networks:
lab-network:
ipv4_address: 172.20.0.3
signalr-hub:
container_name: signalr-hub
image: ${DOCKER_REGISTRY-}signalr-hub
depends_on:
- redis
- sqlserver
build:
context: .
dockerfile: signalr-hub/Dockerfile
ports:
- "8000:80"
restart: always
environment:
- "RedisSettings:Host=172.20.0.1"
- "RedisSettings:Port=6379"
- "DatabaseSettings:Host=172.20.0.1"
- "DatabaseSettings:Port=1433"
- "DatabaseSettings:Database=buy4Risk"
- "DatabaseSettings:UserId=sa"
- "DatabaseSettings:Password=S3cur3P@ssW0rd!"
networks:
lab-network:
ipv4_address: 172.20.0.4