diff --git a/docker-compose.yml b/docker-compose.yml index ebd8459..29b6a75 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + coolify-shared: + name: coolify + external: true \ No newline at end of file