Sha256: cfcc88fa7c53450659b239d5f339ad452d89df3f1a69003b3293eaf82e73fedf

Contents?: true

Size: 1.41 KB

Versions: 34

Compression:

Stored size: 1.41 KB

Contents

version: '3'
services:
  mongo:
    image: "mongo:4.0"
    volumes:
      - mongo:/data/db

  redis:
    image: "redis"
    volumes:
      - redis:/data

  elasticsearch:
    image: "elasticsearch:5.6"
    ports:
      - '9201:9200'
      - '9301:9300'
    volumes:
      - elasticsearch:/usr/share/elasticsearch/data

  # Uncomment this is you want to use mailcatcher
  # mailcatcher:
  #   image: schickling/mailcatcher
  #   ports:
  #     - 1080:1080

  web: &web
    build:
      context: .
      args:
        - APP_PATH=${APP_PATH}
        - APP_BUNDLE_BIN=${BUNDLE_BIN}
    ports:
      - "${RAILS_PORT}:3000"
    volumes:
      - <%= include_docker_sync? ? "#{app_name}-sync:${APP_PATH}:nocopy" : ".:${APP_PATH}" %>
      <%= '- gem_cache:/gems' unless include_docker_sync? %>
    depends_on:
      - redis
      - mongo
      - elasticsearch
    env_file:
      - docker.env
    stdin_open: true
    tty: true
  <% if include_webpack? %>
  webpack_server:
    <<: *web
    command: ['sh', './docker-wait.sh', 'bin/webpack-dev-server']
    depends_on:
      - web
    ports:
      - '3035:3035'
  <% end %>
  # Uncomment this if you want to run sidekiq
  # sidekiq:
  #   <<: *web
  #   command: ['sh', './docker-wait.sh', 'sidekiq']
  #   depends_on:
  #     - web
  #   ports: []

volumes:
  mongo:
  redis:
  elasticsearch:
  <% if include_docker_sync? %>
  <%= app_name %>-sync:
    external: true
  <% else %>
  gem_cache:
  <% end%>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-core-3.4.45 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.44 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.43 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.42 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.41 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.40 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.39 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.38 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.37 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.36 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.35 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.34 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.33 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.32 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.31 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.30 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.29 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.28 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.27 lib/generators/workarea/docker/templates/docker-compose.yml.erb
workarea-core-3.4.26 lib/generators/workarea/docker/templates/docker-compose.yml.erb