Skip to content

Commit

Permalink
Add signon-worker service
Browse files Browse the repository at this point in the history
So that we process the jobs queued up while using Signon in development.
I've copied the pattern from the whitehall-worker in Whitehall's
Dockerfile.
  • Loading branch information
chrisroos committed Aug 1, 2023
1 parent 58421d0 commit 1322650
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions projects/signon/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- mysql-8
- nginx-proxy
- redis
- signon-worker
environment:
DATABASE_URL: "mysql2://root:root@mysql-8/signon_development"
VIRTUAL_HOST: signon.dev.gov.uk
Expand All @@ -44,3 +45,14 @@ services:
expose:
- "3000"
command: bin/rails s --restart

signon-worker:
<<: *signon
depends_on:
- mysql-8
- redis
- nginx-proxy
environment:
DATABASE_URL: "mysql2://root:root@mysql-8/signon_development"
REDIS_URL: redis://redis
command: bundle exec sidekiq -C ./config/sidekiq.yml

0 comments on commit 1322650

Please sign in to comment.