Sha256: 100d81557e5e89310fb11b1da6594f81384bee4e100435f3515b75c55e9236fa

Contents?: true

Size: 894 Bytes

Versions: 5

Compression:

Stored size: 894 Bytes

Contents

version: "3.9"

x-defaults: &defaults
  build:
    context: .
    dockerfile_inline: |
      FROM ruby:3.2-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

5 entries across 5 versions & 1 rubygems

Version Path
rodbot-0.3.1 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.3.0 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.2.0 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.1.1 lib/templates/deploy/docker/compose.yaml.gerb
rodbot-0.1.0 lib/templates/deploy/docker/compose.yaml.gerb