mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 04:39:08 +01:00
add Sidekiq service to Docker setup
This commit is contained in:
parent
7818f74714
commit
36171f5e39
2 changed files with 30 additions and 1 deletions
|
@ -16,6 +16,16 @@ services:
|
|||
ports:
|
||||
- 1234:1234
|
||||
|
||||
sidekiq:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Containerfile.dev
|
||||
command: bundle exec sidekiq
|
||||
environment:
|
||||
- DATABASE_URL=postgres://postgres:justask@postgres/justask_development?pool=25
|
||||
volumes:
|
||||
- ./:/app
|
||||
|
||||
postgres:
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=justask
|
||||
|
|
|
@ -39,11 +39,30 @@ services:
|
|||
volumes:
|
||||
- redis:/data
|
||||
|
||||
sidekiq:
|
||||
image: ghcr.io/retrospring/retrospring:main
|
||||
command: bundle exec sidekiq
|
||||
depends_on:
|
||||
- redis
|
||||
environment:
|
||||
# PROD: define a secret key
|
||||
# - SECRET_KEY_BASE=seeeecret
|
||||
# PROD: configure your database credentials (alternatively use ./config/database.yml below)
|
||||
# - DATABASE_URL=postgres://postgres:justask@postgres/justask_development?pool=25
|
||||
- RAILS_LOG_TO_STDOUT=true
|
||||
- SPROCKETS_CACHE=/cache
|
||||
- REDIS_URL=redis://redis:6379
|
||||
volumes:
|
||||
# PROD: configure your database credentials (alternatively use DATABASE_URL above)
|
||||
# - ./config/database.yml:/opt/retrospring/app/config/database.yml
|
||||
- ./config/sidekiq.yml:/opt/retrospring/app/config/sidekiq.yml
|
||||
- ./config/justask.yml:/opt/retrospring/app/config/justask.yml
|
||||
|
||||
postgres:
|
||||
image: postgres:10.12
|
||||
ports:
|
||||
- 5432:5432
|
||||
# PROD: define database credentials
|
||||
# PROD: define database credentials
|
||||
# environment:
|
||||
# - POSTGRES_PASSWORD=justask
|
||||
# - POSTGRES_DB=justask_production
|
||||
|
|
Loading…
Reference in a new issue