-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (99 loc) · 2.29 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
db:
image: postgres:9.5
volumes:
- "${HOME}/docker/volumes/postgres:/var/lib/postgresql/data"
ports:
- "${DB_PORT}:5432"
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
restart: "on-failure"
db_api:
depends_on:
- db
- web_api
build: apis/db
image: evs-db-api:latest
ports:
- "${DB_API_PORT}:8080"
environment:
DB_HOST: "db"
DB_PORT: "5432"
WEB_API_HOST: "web_api"
WEB_API_PORT: "8080"
restart: "on-failure"
telemsg_api:
build: apis/telemsg
image: evs-telemsg-api:latest
ports:
- "${TELEMSG_API_PORT}:8080"
environment:
TELEGRAM_TOKEN: "${TELEGRAM_TOKEN}"
TELEGRAM_ADMIN_ID: "${TELEGRAM_ADMIN_ID}"
restart: "on-failure"
web_api:
build: apis/web
image: evs-web-api:latest
ports:
- "${WEB_API_PORT}:8080"
restart: "on-failure"
frontend_api:
depends_on:
- db_api
- web_api
build: apis/front
image: evs-front-api:latest
environment:
DB_API_HOST: "db_api"
DB_API_PORT: "8080"
WEB_API_HOST: "web_api"
WEB_API_PORT: "8080"
restart: "on-failure"
nginx:
depends_on:
- frontend_api
image: nginx:1.23
ports:
- 80:80
- 443:443
volumes:
- ./hosts/nginx/nginx.conf/:/etc/nginx/conf.d/nginx.conf:ro
- certbot-www:/var/www/certbot/:ro
- certbot-conf:/etc/nginx/ssl/:ro
certbot:
depends_on:
- nginx
image: certbot/certbot:v1.28.0
volumes:
- certbot-www:/var/www/certbot/
- certbot-conf:/etc/letsencrypt/
telebot:
depends_on:
- db_api
- telemsg_api
- web_api
build: hosts/telebot
image: evs-telebot:latest
environment:
TELEGRAM_TOKEN: "${TELEGRAM_TOKEN}"
TELEGRAM_ADMIN_ID: "${TELEGRAM_ADMIN_ID}"
DB_API_HOST: "db_api"
DB_API_PORT: 8080
TELEMSG_API_HOST: "telemsg_api"
TELEMSG_API_PORT: 8080
WEB_API_HOST: "web_api"
WEB_API_PORT: 8080
restart: "on-failure"
grafana:
depends_on:
- db
image: grafana/grafana:9.0.2
volumes:
- ./hosts/grafana/data:/var/lib/grafana
ports:
- "3000:3000"
volumes:
certbot-www:
certbot-conf: