forked from mlp-2/UniversitiesMonitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (68 loc) · 1.68 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
68
69
70
version: '3'
services:
api:
depends_on:
- db
networks:
- um-network
container_name: umapi
image: "um-api"
build:
context: "."
dockerfile: "UniversitiesMonitoring.Api/Dockerfile"
environment:
- ASPNETCORE_ENVIRONMENT=${RUNTIME_ENV}
- CONNECTION_STRING=Server=mysql;User=root;Password=${MYSQL_PASSWORD};Database=universities_monitoring
- JWT_SECRET=${JWT_SECRET}
- TRUSTED_HOSTS=umapi
restart: always
ports:
- "80:80"
notify-service:
depends_on:
- api
restart: always
networks:
- um-network
container_name: umnotify
image: "um-notify"
build:
context: "."
dockerfile: "UniversitiesMonitoring.NotifyService/Dockerfile"
environment:
- DOTNET_ENVIRONMENT=${RUNTIME_ENV}
- WS_URL=ws://umapi:80/api/updates-socket
- API_URL=http://umapi:80/
- EMAIL_ADDRESS=${EMAIL_ADDRESS}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
monitoring-service:
depends_on:
- api
networks:
- um-network
restart: always
container_name: ummonitoring
image: "um-mon"
build:
context: "."
dockerfile: "UniversitiesMonitoring.MonitoringService/Dockerfile"
environment:
- DOTNET_ENVIRONMENT=${RUNTIME_ENV}
- API_URL=http://umapi:80/
db:
networks:
- um-network
container_name: mysql
image: "mysql"
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
networks:
um-network:
name: um-network