From b91d065cdd94e0f207658268d2cc85c9aeecbd05 Mon Sep 17 00:00:00 2001 From: Gabe Mendoza Date: Sun, 15 Dec 2024 16:19:25 -0600 Subject: [PATCH] remove network (#583) --- db/seeds.rb | 2 +- docker-compose.yml | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 95d77f20..293a959f 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -120,7 +120,7 @@ def tournament_name(organization:) { species: "Staryu", ability: "ability_6", position: 6, tera_type: "water", nature: "relaxed" } ] -tournament = create_tournament(name: tournament_name(organization:), organization:, format:, game: format.game, start_at:, end_at:).tap do |tour| +create_tournament(name: tournament_name(organization:), organization:, format:, game: format.game, start_at:, end_at:).tap do |tour| # Preload profiles to avoid N1 queries accounts_with_profiles = Account.includes(:default_profile) diff --git a/docker-compose.yml b/docker-compose.yml index 484be6cc..35d7dc94 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,6 @@ services: postgres: command: -c 'max_connections=1000' - networks: - - battle-stadium-network image: postgres:16 restart: unless-stopped volumes: @@ -15,16 +13,12 @@ services: - 5432:5432 redis: - networks: - - battle-stadium-network image: redis:7 restart: unless-stopped ports: - 6379:6379 sidekiq: - networks: - - battle-stadium-network image: thatguyinabeanie/battle-stadium:dev-latest command: zsh -c "(bundle check || bundle install) && bundle exec sidekiq" environment: @@ -36,7 +30,6 @@ services: depends_on: - postgres - redis - - backend volumes: - .:/battle-stadium - .zshrc:/root/.zshenv @@ -44,8 +37,6 @@ services: # RAILS API - DEVELOPMENT CONTAINER backend: - networks: - - battle-stadium-network hostname: rails-api-container image: thatguyinabeanie/battle-stadium:dev-latest environment: @@ -81,8 +72,6 @@ services: # RAILS API - PRODUCTION CONTAINER backend-prod: - networks: - - battle-stadium-network profiles: - production hostname: rails-api-container @@ -115,7 +104,3 @@ services: volumes: postgres-data: - -networks: - battle-stadium-network: - name: battle-stadium-network