docker compose update network

This commit is contained in:
Ravi Prasad
2025-06-20 19:17:05 -05:00
parent a8baea57bd
commit c038b63dc3
+10 -10
View File
@@ -1,30 +1,28 @@
# docker-compose.yml - Final Version with Static Port Mappings
# import-data disabled
services:
db-init:
build: .
command: ["/nba_go"]
networks:
- api.network
- coolify-shared
restart: "no"
api1:
build: .
networks:
- api.network
- coolify-shared
restart: always
api2:
build: .
networks:
- api.network
- coolify-shared
restart: always
api3:
build: .
networks:
- api.network
- coolify-shared
restart: always
nginx:
@@ -40,7 +38,7 @@ services:
# Map container port 8080 to a static HOST port 8081.
- "8081:8080"
networks:
- api.network
- coolify-shared
prometheus:
image: 'prom/prometheus:latest'
@@ -57,7 +55,7 @@ services:
# Map container port 9090 to a static HOST port 9091.
- "9091:9090"
networks:
- api.network
- coolify-shared
restart: unless-stopped
grafana:
@@ -73,7 +71,7 @@ services:
- './grafana/dashboards:/var/lib/grafana/dashboards'
- 'grafana_data:/var/lib/grafana'
networks:
- api.network
- coolify-shared
restart: unless-stopped
volumes:
@@ -81,4 +79,6 @@ volumes:
grafana_data:
networks:
api.network: null
coolify-shared:
name: coolify
external: true