mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
docker compose updates ports
This commit is contained in:
+11
-12
@@ -1,4 +1,5 @@
|
|||||||
# docker-compose.yml - Final Version Using Server-Side Volumes
|
# docker-compose.yml - Final Version with Static Port Mappings
|
||||||
|
# import-data disabled
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db-init:
|
db-init:
|
||||||
@@ -29,23 +30,21 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: 'nginx:stable'
|
image: 'nginx:stable'
|
||||||
volumes:
|
volumes:
|
||||||
# --- MODIFICATION ---
|
|
||||||
# Point to the absolute path on the Coolify server.
|
|
||||||
- '/data/nba-go-config/nginx:/etc/nginx:ro'
|
- '/data/nba-go-config/nginx:/etc/nginx:ro'
|
||||||
depends_on:
|
depends_on:
|
||||||
- api1
|
- api1
|
||||||
- api2
|
- api2
|
||||||
- api3
|
- api3
|
||||||
ports:
|
ports:
|
||||||
- "8080"
|
# --- MODIFICATION ---
|
||||||
|
# Map container port 8080 to a static HOST port 8081.
|
||||||
|
- "8081:8080"
|
||||||
networks:
|
networks:
|
||||||
- api.network
|
- api.network
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: 'prom/prometheus:latest'
|
image: 'prom/prometheus:latest'
|
||||||
volumes:
|
volumes:
|
||||||
# --- MODIFICATION ---
|
|
||||||
# Point to the absolute path on the Coolify server.
|
|
||||||
- '/data/nba-go-config/prometheus:/etc/prometheus'
|
- '/data/nba-go-config/prometheus:/etc/prometheus'
|
||||||
- 'prometheus_data:/prometheus'
|
- 'prometheus_data:/prometheus'
|
||||||
command:
|
command:
|
||||||
@@ -54,7 +53,9 @@ services:
|
|||||||
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
||||||
- '--web.console.templates=/etc/prometheus/consoles'
|
- '--web.console.templates=/etc/prometheus/consoles'
|
||||||
ports:
|
ports:
|
||||||
- "9090"
|
# --- MODIFICATION ---
|
||||||
|
# Map container port 9090 to a static HOST port 9091.
|
||||||
|
- "9091:9090"
|
||||||
networks:
|
networks:
|
||||||
- api.network
|
- api.network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -62,15 +63,13 @@ services:
|
|||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
ports:
|
ports:
|
||||||
- "3000"
|
# --- MODIFICATION ---
|
||||||
|
# Map container port 3000 to a static HOST port 3001.
|
||||||
|
- "3001:3000"
|
||||||
environment:
|
environment:
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=testing
|
- GF_SECURITY_ADMIN_PASSWORD=testing
|
||||||
volumes:
|
volumes:
|
||||||
# --- MODIFICATION ---
|
|
||||||
# Point to the absolute path on the Coolify server.
|
|
||||||
- '/data/nba-go-config/grafana/provisioning:/etc/grafana/provisioning'
|
- '/data/nba-go-config/grafana/provisioning:/etc/grafana/provisioning'
|
||||||
# This volume for user-created dashboards can remain relative or be removed
|
|
||||||
# if you only manage dashboards via provisioning.
|
|
||||||
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
||||||
- 'grafana_data:/var/lib/grafana'
|
- 'grafana_data:/var/lib/grafana'
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user