Sha256: 58c6ac1f9aa09aa95dafb1e850bea2d6ba7badc500c6812ae95eaf27a3dc2614

Contents?: true

Size: 928 Bytes

Versions: 3

Compression:

Stored size: 928 Bytes

Contents

version: "3.9"

x-defaults: &defaults
  build:
    context: .
    dockerfile_inline: |
      FROM ruby:[%= RUBY_VERSION.sub(/\.\d+$/, '') %]-alpine
      RUN apk update && apk --no-cache add build-base
      ENV RODBOT_ENV="production"
      ENV RACK_ENV="production"
      ENV RACK_ROOT="/var/www"
      ENV TZ="[%= timezone %]"
      RUN mkdir -p /var/www
      WORKDIR /var/www
      COPY . .
      COPY .bundle /usr/local/bundle
      RUN bundle config set without "development test" && \
        bundle install --jobs 20 --retry 5
  environment:
    - RODBOT_APP_HOST=0.0.0.0
    - PRODUCTION_CREDENTIALS_KEY
  restart: "unless-stopped"

services:
  rodbot:
    <<: *defaults
    command: "sh -c 'bundle exec rodbot start && sleep infinity'"
    ports:
      - "[%= Rodbot.config(:app, :port) %]"

networks:
  default:
    driver: "bridge"
    ipam:
      driver: "default"
      config:
        - subnet: "172.16.72.0/24"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rodbot-0.3.4 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.3.3 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.3.2 lib/templates/deploy/docker/compose.yaml.gerb