mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
+37
-31
@@ -1,22 +1,30 @@
|
|||||||
# import-data disabled
|
|
||||||
services:
|
services:
|
||||||
db-init:
|
db-init:
|
||||||
build: .
|
build: .
|
||||||
command: ["/nba_go"]
|
command:
|
||||||
restart: "no"
|
- /nba_go
|
||||||
|
- import-data
|
||||||
|
restart: 'no'
|
||||||
|
networks:
|
||||||
|
- coolify_shared
|
||||||
api1:
|
api1:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
api2:
|
api2:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
api3:
|
api3:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
nginx:
|
nginx:
|
||||||
image: 'nginx:stable'
|
image: 'nginx:stable'
|
||||||
volumes:
|
volumes:
|
||||||
@@ -26,10 +34,10 @@ services:
|
|||||||
- api2
|
- api2
|
||||||
- api3
|
- api3
|
||||||
ports:
|
ports:
|
||||||
# --- MODIFICATION ---
|
- '8081:8080'
|
||||||
# Map container port 8080 to a static HOST port 8081.
|
networks:
|
||||||
- "8081:8080"
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
prometheus:
|
prometheus:
|
||||||
image: 'prom/prometheus:latest'
|
image: 'prom/prometheus:latest'
|
||||||
volumes:
|
volumes:
|
||||||
@@ -37,21 +45,16 @@ services:
|
|||||||
- 'prometheus_data:/prometheus'
|
- 'prometheus_data:/prometheus'
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
- '--storage.tsdb.path=/prometheus'
|
|
||||||
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
|
||||||
- '--web.console.templates=/etc/prometheus/consoles'
|
|
||||||
ports:
|
ports:
|
||||||
# --- MODIFICATION ---
|
- '9091:9090'
|
||||||
# Map container port 9090 to a static HOST port 9091.
|
|
||||||
- "9091:9090"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:latest
|
image: 'grafana/grafana:latest'
|
||||||
ports:
|
ports:
|
||||||
# --- MODIFICATION ---
|
- '3001:3000'
|
||||||
# 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:
|
||||||
@@ -59,12 +62,15 @@ services:
|
|||||||
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
||||||
- 'grafana_data:/var/lib/grafana'
|
- 'grafana_data:/var/lib/grafana'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- api_network
|
||||||
|
- coolify_shared
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data:
|
prometheus_data: null
|
||||||
grafana_data:
|
grafana_data: null
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
api_network:
|
||||||
|
driver: bridge
|
||||||
|
coolify_shared:
|
||||||
name: coolify
|
name: coolify
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user