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