-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
79 lines (76 loc) · 1.92 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# version: '3.9'
# networks:
# deploy-guide-dev:
# driver: bridge
# services:
# app:
# container_name: deploy
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8000:80" # Оставляем HTTP порт
# - "8001:443" # Изменяем порт на 443 для HTTPS
# networks:
# - deploy-guide-dev
# environment:
# - ASPNETCORE_ENVIRONMENT=Development
# - ASPNETCORE_URLS=https://+:443;http://+:80
# - ASPNETCORE_Kestrel__Certificates__Default__Password=123
# - ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
# volumes:
# - ~/.aspnet/https:/https:ro # Монтируем директорию с сертификатами в контейнер
# version: '3.9'
# services:
# sqldata:
# image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
# environment:
# - ACCEPT_EULA=Y
# - SA_PASSWORD=vV5r9tn0M4@
# ports:
# - "1433:1433"
# web:
# build: .
# environment:
# DbServer: "sqldata"
# DbPort: "1433"
# DbName: "bookdb"
# DbPassword: "vV5r9tn0M4@"
# DbUser: "SA"
# ports:
# - "8080:80"
# restart: on-failure
# depends_on:
# - sqldata
# links:
# - sqldata
version: '3.4'
networks:
TestingDocker:
services:
demoappdb:
container_name: app-db
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- 8002:1433
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=password@12345#
networks:
- TestingDocker
dockertestserver:
container_name: docker-test
image: ${DOCKER_REGISTRY-}docker-test
build:
context: .
dockerfile: Dockerfile
ports:
- 8001:80
depends_on:
- demoappdb
environment:
- DB_HOST=demoappdb
- DB_NAME=TestingDockerDb
- DB_SA_PASSWORD=password@12345#
networks:
- TestingDocker