Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: postgres
- environment:
- POSTGRES_USER: root
- POSTGRES_PASSWORD: mysecretpassword
- volumes:
- - pgdata:/var/lib/postgresql/data
- delayed_job:
- build: .
- command: bundle exec rails jobs:work
- volumes:
- - .:/rails-docker
- depends_on:
- - db
- cron_job:
- build: .
- command: cron -f
- depends_on:
- - db
- web:
- build: .
- command: bundle exec rails s webrick -b '0.0.0.0'
- volumes:
- - .:/rails-docker
- ports:
- - "3000:3000"
- depends_on:
- - db
- tty: true
- stdin_open: true
- volumes:
- pgdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement