mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #5333 from coopdevs/add-worker-docker-container
Create a container to run a DJ worker in dev
This commit is contained in:
@@ -31,7 +31,22 @@ services:
|
||||
bash -c "wait-for-it -t 30 db:5432 &&
|
||||
rm -f tmp/pids/server.pid &&
|
||||
bundle exec rails s -p 3000 -b '0.0.0.0'"
|
||||
|
||||
worker:
|
||||
tty: true
|
||||
stdin_open: true
|
||||
build: .
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- gems:/bundles
|
||||
- ./config/database.yml:/usr/src/app/config/database.yml
|
||||
- ./config/application.yml.example:/usr/src/app/config/application.yml
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
OFN_DB_HOST: db
|
||||
command: >
|
||||
bash -c "wait-for-it -t 30 db:5432 &&
|
||||
bundle exec rake jobs:work"
|
||||
volumes:
|
||||
gems:
|
||||
postgres:
|
||||
|
||||
Reference in New Issue
Block a user