FROM ruby:2.5.0-alpine3.7
LABEL maintainer="https://github.com/tootsuite/mastodon" \
- description="A GNU Social-compatible microblogging server"
+ description="Your self-hosted, globally interconnected microblogging community"
ARG UID=991
ARG GID=991
&& mkdir -p /mastodon/public/system /mastodon/public/assets /mastodon/public/packs \
&& chown -R mastodon:mastodon /mastodon/public
-COPY --chown=mastodon:mastodon . /mastodon
+COPY . /mastodon
+
+RUN chown -R mastodon:mastodon /mastodon
VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs
web:
build: .
- image: gargron/mastodon
+ image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec rails s -p 3000 -b '0.0.0.0'
streaming:
build: .
- image: gargron/mastodon
+ image: tootsuite/mastodon
restart: always
env_file: .env.production
command: yarn start
sidekiq:
build: .
- image: gargron/mastodon
+ image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec sidekiq -q default -q mailers -q pull -q push