# Example docker-compose for a sub-service version: '3' services: # If you have another app and want to share # some resources another_app: build: # path to another app root (and Dockerfile) context: '../another-app' image: another-app:1.1 command: bundle exec sidekiq environment: - REDIS_URL=redis://redis:6379/ volumes: - ../another-app:/app # Here we use services and volumes defined in the main config - bundle:/bundle depends_on: - redis