* Switch docker-compose to version 3.
It allow possibility to Deploy Mastodon in a Swarm cluster directly from the compose file.
* switch to compose v3 without depend.
-version: '2'
+version: '3'
services:
db:
# volumes:
# - ./redis:/data
- app:
+ web:
build: .
image: gargron/mastodon
-
- web:
- extends:
- service: app
restart: always
env_file: .env.production
command: bundle exec rails s -p 3000 -b '0.0.0.0'
- ./public/system:/mastodon/public/system
streaming:
- extends:
- service: app
+ build: .
+ image: gargron/mastodon
restart: always
env_file: .env.production
command: npm run start
- redis
sidekiq:
- extends:
- service: app
+ build: .
+ image: gargron/mastodon
restart: always
env_file: .env.production
command: bundle exec sidekiq -q default -q mailers -q pull -q push