Skip to content

Commit

Permalink
Add more container images for production (#38)
Browse files Browse the repository at this point in the history
* remove setup for App Runner

* config for production

* edit sidekiq config

* sidekiq

* SOLR_HOST production env

* Revert "SOLR_HOST production env"

This reverts commit f425555.
  • Loading branch information
BlazingRockStorm authored Nov 17, 2023
1 parent 57ae4db commit fa4b96f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
redis_config= { url: 'redis://redis:6379/0' }
redis_config= { url: "redis://#{ENV.fetch('REDIS_URL', 'redis:6379')}" }

Sidekiq.configure_server do |config|
config.redis = redis_config
Expand Down
19 changes: 0 additions & 19 deletions docker-compose.app-runner.yml

This file was deleted.

10 changes: 6 additions & 4 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ services:
- docker-entrypoint.sh
- solr-precreate
- production
# links:
# - db:db

nginx:
build: nginx
Expand All @@ -34,8 +32,12 @@ services:
- public-data:/rails-lyrics-site/public
ports:
- "80:80"
depends_on:
- web

sidekiq:
build: .
command: bundle exec sidekiq
volumes:
- .:/rails-lyrics-site

volumes:
bundle:
Expand Down

0 comments on commit fa4b96f

Please sign in to comment.