-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
132 lines (120 loc) · 3.58 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.8"
name: mss
volumes:
mss-keycloak-postgres:
name: mss-keycloak-postgres
mss-prometheus-data:
name: mss-prometheus-data
mss-grafana-data:
name: mss-grafana-data
mss-grafana-home:
name: mss-grafana-home
services:
mss-backend:
container_name: mss-backend
image: mss-backend:latest
build:
context: ./backend
restart: always
ports:
- 127.0.0.1:${BACKEND_PUBLISH_PORT}:80
mss-notifier:
container_name: mss-notifier
image: mss-notifier:latest
build:
context: ./notifier
restart: always
ports:
- 127.0.0.1:${NOTIFIER_PUBLISH_PORT}:80
mss-telegram:
container_name: mss-telegram
image: mss-telegram:latest
build:
context: ./telegram
restart: always
mss-scrapper:
container_name: mss-scrapper
image: mss-scrapper:latest
build:
context: ./scrapper
restart: always
mss-frontend:
container_name: mss-frontend
image: mss-frontend:latest
build:
context: ./frontend
args:
GITHUB_RUN_NUMBER: ${GITHUB_RUN_NUMBER}
restart: always
volumes:
- ${FRONTEND_PUBLISH_PATH}:/usr/src/app/mount
mss-keycloak:
container_name: mss-keycloak
image: quay.io/keycloak/keycloak:latest
restart: always
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://mss-keycloak-postgres:5432/${KEYCLOAK_POSTGRES_DB}
KC_DB_USERNAME: ${KEYCLOAK_POSTGRES_USER}
KC_DB_PASSWORD: ${KEYCLOAK_POSTGRES_PASSWORD}
KC_HOSTNAME_URL: ${KEYCLOAK_HOSTNAME_URL}
KC_HOSTNAME_ADMIN_URL: ${KEYCLOAK_HOSTNAME_URL}
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_BACKCHANNEL: true
KC_HTTP_ENABLED: true
KC_LOG_LEVEL: WARN
KC_PROXY: edge
ports:
- 127.0.0.1:${KEYCLOAK_PUBLISH_PORT}:8080
depends_on:
- mss-keycloak-postgres
volumes:
- ./keycloak/keycloak.conf:/opt/keycloak/conf/keycloak.conf
command:
- start
mss-keycloak-postgres:
container_name: mss-keycloak-postgres
image: postgres:16-alpine
restart: always
environment:
PGDATA: "/var/lib/postgresql/data/pgdata"
POSTGRES_DB: ${KEYCLOAK_POSTGRES_DB}
POSTGRES_USER: ${KEYCLOAK_POSTGRES_USER}
POSTGRES_PASSWORD: ${KEYCLOAK_POSTGRES_PASSWORD}
volumes:
- mss-keycloak-postgres:/var/lib/postgresql/data
- ./keycloak/postgresql.conf:/etc/postgresql/postgresql.conf
mss-panel:
container_name: mss-panel
image: mss-panel:latest
build:
context: ./panel
restart: always
ports:
- 127.0.0.1:${PANEL_PUBLISH_PORT}:80
mss-prometheus:
container_name: mss-prometheus
image: prom/prometheus
restart: always
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
- mss-prometheus-data:/prometheus
mss-grafana:
container_name: mss-grafana
image: grafana/grafana
restart: always
depends_on:
- mss-prometheus
environment:
GF_AUTH_DISABLE_LOGIN_FORM: true
GF_AUTH_ANONYMOUS_ENABLED: true
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
volumes:
- ./monitoring/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./monitoring/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./monitoring/grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
- ./monitoring/grafana/node-dashboard.json:/etc/grafana/provisioning/dashboards/node-dashboard.json
- mss-grafana-data:/var/lib/grafana
- mss-grafana-home:/usr/share/grafana