-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 1.22 KB
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
version: "3.9" # optional since v1.27.0
services:
web_api:
image: mobilemonitoringapi
build: .
container_name: mobilemonitoringapi_application
ports:
- "5000:80"
depends_on:
- sql
- video_server_nginx
- video_server_srs
environment:
- ASPNETCORE_ENVIRONMENT=Production
sql:
image: "mcr.microsoft.com/mssql/server:2022-latest"
container_name: sql_server2022
ports: # not actually needed, because the two services are on the same network
- "1430:1433"
environment:
- ACCEPT_EULA=y
- SA_PASSWORD=A&VeryComplex123Password
volumes:
- "./log/:/var/opt/mssql/log/"
- "./secrets/:/var/opt/mssql/secrets/"
video_server_nginx:
image: "rtmp-server"
build: ./rtmp-hls-server
container_name: video_server_nginx
ports:
- "1935:1935"
- "8080:8080"
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf"
video_server_srs:
image: "ossrs/srs:5"
container_name: video_server_srs
ports:
- "1936:1936"
- "8081:8081"
volumes:
- "./srs.conf:/usr/local/srs/conf/srs.conf"
entrypoint: "./objs/srs -c /usr/local/srs/conf/srs.conf"
extra_hosts:
- "host.docker.internal:host-gateway"