Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.4'
- services:
- app:
- build:
- context: .
- dockerfile: Dockerfile
- depends_on:
- - database
- - redis
- ports:
- - "3000:3000"
- volumes:
- - .:/app
- - gem_cache:/usr/local/bundle/gems
- - node_modules:/app/node_modules
- env_file: .env
- environment:
- RAILS_ENV: development
- database:
- image: postgres:12.1
- volumes:
- - db_data:/var/lib/postgresql/data
- - ./init.sql:/docker-entrypoint-initdb.d/init.sql
- redis:
- image: redis:5.0.7
- sidekiq:
- build:
- context: .
- dockerfile: Dockerfile
- depends_on:
- - app
- - database
- - redis
- volumes:
- - .:/app
- - gem_cache:/usr/local/bundle/gems
- - node_modules:/app/node_modules
- env_file: .env
- environment:
- RAILS_ENV: development
- entrypoint: ./entrypoints/sidekiq-entrypoint.sh
- volumes:
- gem_cache:
- db_data:
- node_modules:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement