Sha256: d538f87419edba148f6ce61b7e26afadd1d01fa32f8c10d54b73323b1201c800

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

version: '3.7'

x-ruby: &ruby-base
  build:
    context: <%= dockerfile_dir %>ruby
    args:
      - RAILSDOCK_RUBY_VERSION=${RAILSDOCK_RUBY_VERSION}
      - RAILSDOCK_NODE_VERSION=${RAILSDOCK_NODE_VERSION}
      - RUBY_UID=${RUBY_UID}
      - RUBY_GID=${RUBY_GID}
  volumes:
    - .:/app
    - gems:/gems
    - node_modules:/app/node_modules
    - packs:/app/public/packs
    - rails_cache:/app/tmp/cache
  tmpfs:
    - /tmp
  user: ruby
  tty: true
  stdin_open: true
  depends_on:

volumes:
  gems:
  node_modules:

services:

  rails:
    <<: *ruby-base
    build:
      context: <%= dockerfile_dir %>ruby
      args:
        - RAILSDOCK_BUNDLE_JOBS=${BUNDLE_JOBS}
        - RAILSDOCK_BUNDLE_RETRY=${BUNDLE_RETRY}
    environment:
      - DATABASE_USER=${DATABASE_USER}
      - DATABASE_PASSWORD=${DATABASE_PASSWORD}
      - DATABASE_HOST=${DATABASE_HOST}
    volumes:
      - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
      - gems:/gems
      - node_modules:${APP_CODE_PATH_CONTAINER}/node_modules
    ports:
      - "${RAILS_SERVER_HOST_PORT}:3000"
    user: ruby
    tty: true
    stdin_open: true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsdock-0.2.0 lib/railsdock/templates/install/default/docker-compose.yml.erb
railsdock-0.1.4 lib/railsdock/templates/install/default/docker-compose.yml.erb