-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (62 loc) · 1.42 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
65
66
67
version: "3.10"
services:
dotnet-backend:
container_name: net
build:
context: ./Templates/WebAPI
dockerfile: ./Devon4Net.Application.WebAPI/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DOTNET_ENVIRONMENT=Production
- ASPNETCORE_HOST=Production
networks:
backend-net:
aliases: [backend]
database-net:
aliases: [mtsmongo]
ports:
- 8081:8081
depends_on:
- mongodatabase
links:
- "mongodatabase:database"
frontend:
container_name: angular
build:
context: ./FrontEnd
networks:
backend-net:
aliases: [backend]
reverse-proxy:
build: ./ReverseProxy
restart: always
container_name: 'mts_reverse_proxy'
ports:
- 8080:80
networks:
backend-net:
aliases: [backend]
mongodatabase:
container_name: mongodatabase
build: ./Database/MongoDB
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=sa
- MONGO_INITDB_DATABASE=mts
- MONGO_INITDB_ROOT_PASSWORD=C@pgemini2017
networks:
database-net:
aliases: [mtsmongo]
ports:
- 27017:27017
volumes:
- mongodb-volume:/data/db
- ./Database/MongoDB/mongorestore.sh:/docker-entrypoint-initdb.d/mongorestore.sh:ro
networks:
backend-net:
driver: bridge
database-net:
driver: bridge
volumes:
mssql-volume:
mongodb-volume: