Skip to content

Instantly share code, notes, and snippets.

@osnysantos
Created November 30, 2020 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osnysantos/1355771f78dbb4b25e18687014e82dad to your computer and use it in GitHub Desktop.
Save osnysantos/1355771f78dbb4b25e18687014e82dad to your computer and use it in GitHub Desktop.
version: '3.8'
services:
db:
image: mysql:5.7
env_file: .env
redis:
image: 'redis:5-alpine'
command: redis-server
api:
depends_on:
- db
- redis
build:
context: .
dockerfile: Dockerfile
env_file: .env
volumes:
- ".:/app"
- gem_cache:/usr/local/bundle/gems
sidekiq:
build:
context: .
dockerfile: Dockerfile
depends_on:
- api
- db
- redis
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
env_file: .env
environment:
RAILS_ENV: development
entrypoint: ./entrypoints/sidekiq.sh
volumes:
gem_cache:
db:
redis:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment