Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove network #583

Merged
merged 3 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading