Sha256: cad6d0053c61ee5d3140b2256c65c6b407848f187010d4098ebe8199ac4b7d7e
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
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 - RODBOT_APP_URL=http://app - RODBOT_RELAY_HOST=0.0.0.0 [% relay_extensions.each do |name, _| -%] - RODBOT_RELAY_URL_[%= name.upcase %]=tcp://relay-[%= name %] [% end -%] - PRODUCTION_CREDENTIALS_KEY restart: "unless-stopped" services: app: <<: *defaults command: "bundle exec rodbot start app" ports: - "[%= Rodbot.config(:app, :port) %]" schedule: <<: *defaults command: "bundle exec rodbot start schedule" [% relay_extensions.each do |name, port| -%] relay-[%= name %]: <<: *defaults command: "bundle exec rodbot start relay [%= name %]" expose: - [%= port %] [% end -%] networks: default: driver: "bridge" ipam: driver: "default" config: - subnet: "172.16.72.0/24"
Version data entries
3 entries across 3 versions & 1 rubygems