mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
nginx
This commit is contained in:
+6
-7
@@ -30,9 +30,9 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: 'nginx:stable'
|
build:
|
||||||
|
context: ./nginx
|
||||||
volumes:
|
volumes:
|
||||||
- './nginx/nginx.conf:/etc/nginx/nginx.conf:ro'
|
|
||||||
- nginx_cache:/var/cache/nginx
|
- nginx_cache:/var/cache/nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
- api1
|
- api1
|
||||||
@@ -47,9 +47,9 @@ services:
|
|||||||
# - api_network
|
# - api_network
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: 'prom/prometheus:latest'
|
build:
|
||||||
|
context: ./prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- './prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro'
|
|
||||||
- 'prometheus_data:/prometheus'
|
- 'prometheus_data:/prometheus'
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
@@ -66,7 +66,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:latest
|
build:
|
||||||
|
context: ./grafana
|
||||||
ports:
|
ports:
|
||||||
# --- MODIFICATION ---
|
# --- MODIFICATION ---
|
||||||
# Map container port 3000 to a static HOST port 3001.
|
# Map container port 3000 to a static HOST port 3001.
|
||||||
@@ -74,8 +75,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=testing
|
- GF_SECURITY_ADMIN_PASSWORD=testing
|
||||||
volumes:
|
volumes:
|
||||||
- './grafana/provisioning:/etc/grafana/provisioning:ro'
|
|
||||||
- './grafana/dashboards:/var/lib/grafana/dashboards:ro'
|
|
||||||
- 'grafana_data:/var/lib/grafana'
|
- 'grafana_data:/var/lib/grafana'
|
||||||
networks:
|
networks:
|
||||||
- coolify-shared
|
- coolify-shared
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
FROM grafana/grafana:latest
|
||||||
|
COPY provisioning /etc/grafana/provisioning
|
||||||
|
COPY dashboards /var/lib/grafana/dashboards
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:stable
|
||||||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
FROM prom/prometheus:latest
|
||||||
|
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
||||||
Reference in New Issue
Block a user