diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 1268719d..6f49eca0 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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 diff --git a/docker-compose.example.yml b/docker-compose.example.yml index b644739b..5f2eeca1 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -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