Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awcodify/dockerized-rails-5
Dockerizing Rails 5, Postgres, Redis, Sidekiq, ActionCable
https://github.com/awcodify/dockerized-rails-5
Last synced: about 2 months ago
JSON representation
Dockerizing Rails 5, Postgres, Redis, Sidekiq, ActionCable
- Host: GitHub
- URL: https://github.com/awcodify/dockerized-rails-5
- Owner: awcodify
- Created: 2018-03-21T13:58:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T14:18:34.000Z (almost 7 years ago)
- Last Synced: 2024-10-21T22:57:11.167Z (2 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerizing Rails 5, Postgres, Redis, Sidekiq, ActionCable
## How to use* clone this repository
* `cp .env.example .env` and change into yours:```
DB_USER=root
DB_PASSWORD=itsahardpassword!
REDIS_URL=redis://redis:6379/0
REDIS_PASSWORD=itsahardpassword!
```
* docker-compose up --build
* go to `http://localhost:3000`
### PostgresDocument not created. You can see at `docker-compose.yml` to start understanding.
### Redis
Document not created. You can see at `docker-compose.yml` to start understanding.
### Sidekiq```ruby
redis = {
url: (ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0'),
password: (ENV['REDIS_PASSWORD'] || '')
}Sidekiq.configure_server do |config|
config.redis = redis
endSidekiq.configure_client do |config|
config.redis = redis
end
```
#### Sidekiq dashboard
After `docker-compose up` you can go to `http://localhost:3000/sidekiq`
To change url into yours, go to `routes.rb` and change the path:
```ruby
mount Sidekiq::Web => '/sidekiq'
```### ActionCable
Document not created. You can see at `docker-compose.yml` to start understanding.