mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
compose networks docs
This commit is contained in:
+49
-32
@@ -1,30 +1,34 @@
|
|||||||
|
# import-data disabled
|
||||||
services:
|
services:
|
||||||
db-init:
|
db-init:
|
||||||
build: .
|
build: .
|
||||||
command:
|
command: ["/nba_go"]
|
||||||
- /nba_go
|
|
||||||
- import-data
|
|
||||||
restart: 'no'
|
|
||||||
networks:
|
networks:
|
||||||
- coolify_shared
|
- coolify-shared
|
||||||
|
# - api_network
|
||||||
|
restart: "no"
|
||||||
|
|
||||||
api1:
|
api1:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
|
||||||
networks:
|
networks:
|
||||||
- api_network
|
- coolify-shared
|
||||||
- coolify_shared
|
# - api_network
|
||||||
|
restart: always
|
||||||
|
|
||||||
api2:
|
api2:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
|
||||||
networks:
|
networks:
|
||||||
- api_network
|
- coolify-shared
|
||||||
- coolify_shared
|
# - api_network
|
||||||
|
restart: always
|
||||||
|
|
||||||
api3:
|
api3:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
|
||||||
networks:
|
networks:
|
||||||
- api_network
|
- coolify-shared
|
||||||
- coolify_shared
|
# - api_network
|
||||||
|
restart: always
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: 'nginx:stable'
|
image: 'nginx:stable'
|
||||||
volumes:
|
volumes:
|
||||||
@@ -34,10 +38,13 @@ services:
|
|||||||
- api2
|
- api2
|
||||||
- api3
|
- api3
|
||||||
ports:
|
ports:
|
||||||
- '8081:8080'
|
# --- MODIFICATION ---
|
||||||
|
# Map container port 8080 to a static HOST port 8081.
|
||||||
|
- "8081:8080"
|
||||||
networks:
|
networks:
|
||||||
- api_network
|
- coolify-shared
|
||||||
- coolify_shared
|
# - api_network
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: 'prom/prometheus:latest'
|
image: 'prom/prometheus:latest'
|
||||||
volumes:
|
volumes:
|
||||||
@@ -45,32 +52,42 @@ 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:
|
||||||
- '9091:9090'
|
# --- MODIFICATION ---
|
||||||
restart: unless-stopped
|
# Map container port 9090 to a static HOST port 9091.
|
||||||
|
- "9091:9090"
|
||||||
networks:
|
networks:
|
||||||
- api_network
|
- coolify-shared
|
||||||
- coolify_shared
|
# - api_network
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: 'grafana/grafana:latest'
|
image: grafana/grafana:latest
|
||||||
ports:
|
ports:
|
||||||
- '3001: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:
|
||||||
- '/data/nba-go-config/grafana/provisioning:/etc/grafana/provisioning'
|
- '/data/nba-go-config/grafana/provisioning:/etc/grafana/provisioning'
|
||||||
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
- './grafana/dashboards:/var/lib/grafana/dashboards'
|
||||||
- 'grafana_data:/var/lib/grafana'
|
- 'grafana_data:/var/lib/grafana'
|
||||||
|
networks:
|
||||||
|
- coolify-shared
|
||||||
|
# - api_network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
|
||||||
- api_network
|
|
||||||
- coolify_shared
|
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data: null
|
prometheus_data:
|
||||||
grafana_data: null
|
grafana_data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
api_network:
|
# api_network:
|
||||||
driver: bridge
|
# driver: bridge
|
||||||
coolify_shared:
|
coolify-shared:
|
||||||
name: coolify
|
name: coolify
|
||||||
external: true
|
# external: true
|
||||||
Reference in New Issue
Block a user