33 lines
No EOL
758 B
YAML
33 lines
No EOL
758 B
YAML
version: "3.3"
|
|
services:
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- ./tmp/db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: password
|
|
web:
|
|
build: .
|
|
env_file:
|
|
- credentials.env
|
|
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
|
|
volumes:
|
|
- .:/data_importer
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- db
|
|
faktory:
|
|
image: contribsys/faktory:latest
|
|
ports:
|
|
- "7419:7419"
|
|
- "7420:7420"
|
|
volumes:
|
|
- ./tmp/faktory:/var/lib/faktory
|
|
faktory-cron:
|
|
image: cdrx/faktory-cron
|
|
command: "./faktory-cron -config /crontab.yaml"
|
|
environment:
|
|
FAKTORY_URL: 'tcp://faktory:7419'
|
|
volumes:
|
|
- ./crontab.yaml:/crontab.yaml |