modified: main_dc/docker-compose.yml
modified: main_dc/nginx/nginx-ssl.conf new file: main_dc/valitovgaziz/analytics/Dockerfile new file: main_dc/valitovgaziz/analytics/package.json new file: main_dc/valitovgaziz/analytics/server.js new file: main_dc/valitovgaziz/html/JavaScript/analytics.js modified: main_dc/valitovgaziz/html/index.html add nginx settings for api logs for valitovgaziz.ru site, add container for metrica container, add metrica scripts on site valitovgaziz.ru
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
services:
|
||||
|
||||
certbot:
|
||||
build:
|
||||
context: ./certbot
|
||||
@@ -33,6 +34,7 @@ services:
|
||||
- ./yalarba/serv_spa/spa/vue/dist:/usr/share/nginx/yalarba/html
|
||||
- ./valitovgaziz/html:/usr/share/nginx/valitovgaziz/html
|
||||
- ./BB/bbvue/dist:/usr/share/nginx/begushiybashkir/html
|
||||
- analytics_logs:/var/log/analytics:ro
|
||||
networks:
|
||||
- web-network
|
||||
- internal
|
||||
@@ -42,6 +44,33 @@ services:
|
||||
- certbot
|
||||
- api
|
||||
- api_bb
|
||||
- analytics
|
||||
|
||||
analytics:
|
||||
build:
|
||||
context: ./analytics
|
||||
dockerfile: Dockerfile
|
||||
container_name: analytics
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9999:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- LOG_LEVEL=info
|
||||
- LOG_RETENTION_DAYS=30
|
||||
volumes:
|
||||
- analytics_logs:/app/logs
|
||||
- analytics_data:/app/data
|
||||
networks:
|
||||
- web-network
|
||||
- internal
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
api:
|
||||
build:
|
||||
@@ -197,7 +226,15 @@ services:
|
||||
- app-network
|
||||
- web-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health"]
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"wget",
|
||||
"--no-verbose",
|
||||
"--tries=1",
|
||||
"--spider",
|
||||
"http://localhost:8081/health",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -208,6 +245,8 @@ volumes:
|
||||
db_tp_data:
|
||||
db_bb_data:
|
||||
api_bb_uploads:
|
||||
analytics_logs: # Volume для логов аналитики
|
||||
analytics_data: # Volume для данных аналитики
|
||||
|
||||
networks:
|
||||
web-network:
|
||||
|
||||
Reference in New Issue
Block a user