This commit is contained in:
2026-09-04 12:42:40 -05:00
parent 56ff529e01
commit 92d6ec5c36
4 changed files with 13 additions and 7 deletions
+6 -7
View File
@@ -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
+3
View File
@@ -0,0 +1,3 @@
FROM grafana/grafana:latest
COPY provisioning /etc/grafana/provisioning
COPY dashboards /var/lib/grafana/dashboards
+2
View File
@@ -0,0 +1,2 @@
FROM nginx:stable
COPY nginx.conf /etc/nginx/nginx.conf
+2
View File
@@ -0,0 +1,2 @@
FROM prom/prometheus:latest
COPY prometheus.yml /etc/prometheus/prometheus.yml