Skip to content

Commit

Permalink
remove network (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie authored Dec 15, 2024
1 parent 705e6c2 commit b91d065
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
15 changes: 0 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
services:
postgres:
command: -c 'max_connections=1000'
networks:
- battle-stadium-network
image: postgres:16
restart: unless-stopped
volumes:
Expand All @@ -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:
Expand All @@ -36,16 +30,13 @@ services:
depends_on:
- postgres
- redis
- backend
volumes:
- .:/battle-stadium
- .zshrc:/root/.zshenv
- .zshrc:/root/.zshrc

# RAILS API - DEVELOPMENT CONTAINER
backend:
networks:
- battle-stadium-network
hostname: rails-api-container
image: thatguyinabeanie/battle-stadium:dev-latest
environment:
Expand Down Expand Up @@ -81,8 +72,6 @@ services:

# RAILS API - PRODUCTION CONTAINER
backend-prod:
networks:
- battle-stadium-network
profiles:
- production
hostname: rails-api-container
Expand Down Expand Up @@ -115,7 +104,3 @@ services:

volumes:
postgres-data:

networks:
battle-stadium-network:
name: battle-stadium-network

0 comments on commit b91d065

Please sign in to comment.