Sha256: 71db755faa63b66f3d5395caf15c3e782763e64ce469dbb1cc72baefe290e5a5
Contents?: true
Size: 1.29 KB
Versions: 5
Compression:
Stored size: 1.29 KB
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 - 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
5 entries across 5 versions & 1 rubygems