Sha256: ae68f1c56c1aa1667afe674c845290fe95f42e1d09df57c84f53b13fccdce6a2
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
x-defaults: &defaults build: context: . dockerfile_inline: | FROM ruby:[%= RUBY_VERSION.sub(/\.\d+$/, '') %]-alpine RUN apk update && apk --no-cache add build-base tzdata libffi ENV RODBOT_ENV="production" ENV RACK_ENV="production" ENV RACK_ROOT="/var/www" ENV TZ="[%= time_zone %]" RUN mkdir -p /var/www WORKDIR /var/www COPY . . COPY .bundle /usr/local/bundle RUN bundle config set without "development test" && \ bundle install 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.5.1 | lib/templates/deploy/docker/compose.yaml.gerb |