mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 08:43:41 +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:
|
ports:
|
||||||
- 1234:1234
|
- 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:
|
postgres:
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=justask
|
- POSTGRES_PASSWORD=justask
|
||||||
|
|
|
@ -39,6 +39,25 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- 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:
|
postgres:
|
||||||
image: postgres:10.12
|
image: postgres:10.12
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue